From 601ef03908450485a2d961578915136bf4b9df31 Mon Sep 17 00:00:00 2001 From: Andrii Demydenko Date: Wed, 17 Jul 2024 10:01:14 +0100 Subject: [PATCH] fix(#4): use action token instead of personal --- .github/workflows/build.yaml | 43 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a0ec068..ff60ed5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,8 +39,6 @@ jobs: - name: Build uberjar run: | clojure -T:build uberjar :jar-name ${{ env.FILE_NAME }} - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - name: Move jar into release directory run: | @@ -66,10 +64,10 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '21' - distribution: 'graalvm' - github-token: ${{ secrets.GH_TOKEN }} - native-image-job-reports: 'true' + java-version: "21" + distribution: "graalvm" + github-token: ${{ secrets.GITHUB_TOKEN }} + native-image-job-reports: "true" - name: Compile to native binary run: | @@ -95,10 +93,10 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '21' - distribution: 'graalvm' - github-token: ${{ secrets.GH_TOKEN }} - native-image-job-reports: 'true' + java-version: "21" + distribution: "graalvm" + github-token: ${{ secrets.GITHUB_TOKEN }} + native-image-job-reports: "true" - name: Compile to native binary run: | @@ -124,10 +122,10 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '21' - distribution: 'graalvm' - github-token: ${{ secrets.GH_TOKEN }} - native-image-job-reports: 'true' + java-version: "21" + distribution: "graalvm" + github-token: ${{ secrets.GITHUB_TOKEN }} + native-image-job-reports: "true" - name: Compile to native binary run: | @@ -205,54 +203,57 @@ jobs: run: | git tag ${{ steps.next_version.outputs.tag }} git push origin ${{ steps.next_version.outputs.tag }} - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + # FIXME this action is archived - name: Create Github Release id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.next_version.outputs.tag }} release_name: Release ${{ steps.next_version.outputs.tag }} draft: false prerelease: false + # FIXME this action is archived - name: Upload Release Asset (jar) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: release/${{ env.FILE_NAME }}.jar asset_name: ${{ env.FILE_NAME }}.jar asset_content_type: application/java-archive + # FIXME this action is archived - name: Upload Release Asset (amd64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: release/${{ env.FILE_NAME }} asset_name: ${{ env.FILE_NAME }} asset_content_type: application/octet-stream + # FIXME this action is archived - name: Upload Release Asset (arm64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: release/${{ env.FILE_NAME }}-arm64 asset_name: ${{ env.FILE_NAME }}-arm64 asset_content_type: application/octet-stream + # FIXME this action is archived - name: Upload Release Assets (Windows) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: release/${{ env.FILE_NAME }}.exe