diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 4034e29..21bf313 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -78,15 +78,15 @@ jobs: with: args: > sh -c " - echo 'OPENSSL_DIR:' $OPENSSL_DIR + echo 'OPENSSL_DIR:' $OPENSSL_DIR && apt-get update && apt-get install -y ${{ matrix.deps }} && rustup target add x86_64-unknown-linux-gnu && cargo build --release --target x86_64-unknown-linux-gnu && - mkdir -p /github/workspace/release-artifacts && - cp target/x86_64-unknown-linux-gnu/release/uptime-kuma-dashboard /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && - strip /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && - chmod +x /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && - ls -lh /github/workspace/release-artifacts/" + mkdir -p release-artifacts && + cp target/x86_64-unknown-linux-gnu/release/uptime-kuma-dashboard release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && + strip release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && + chmod +x release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && + ls -lh release-artifacts/" env: ${{ matrix.env }} options: --platform ${{ matrix.platform }} @@ -99,9 +99,9 @@ jobs: apt-get update && apt-get install -y ${{ matrix.deps }} && rustup target add x86_64-pc-windows-gnu && cargo build --release --target x86_64-pc-windows-gnu && - mkdir -p /github/workspace/release-artifacts && - cp target/x86_64-pc-windows-gnu/release/uptime-kuma-dashboard.exe /github/workspace/release-artifacts/uptime-kuma-dashboard-x86_64-pc-windows-gnu.exe && - ls -lh /github/workspace/release-artifacts/" + mkdir -p release-artifacts && + cp target/x86_64-pc-windows-gnu/release/uptime-kuma-dashboard.exe release-artifacts/uptime-kuma-dashboard-x86_64-pc-windows-gnu.exe && + ls -lh release-artifacts/" env: ${{ matrix.env }} options: --platform ${{ matrix.platform }} @@ -141,12 +141,12 @@ jobs: - name: Create Release uses: https://code.forgejo.org/actions/forgejo-release@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }} with: direction: upload release-dir: release-artifacts - title: "Release ${{ github.ref_name }}" - tag: ${{ github.ref_name }} + title: "Release ${{ forgejo.ref_name }}" + tag: ${{ forgejo.ref_name }} release-notes:: | ## 🚀 Multi-Platform Release Compiled on runner **${{ env.RUNNER_ARCH }}**