Skip to content

Commit

Permalink
fix(#4): use action token instead of personal
Browse files Browse the repository at this point in the history
  • Loading branch information
worm2fed committed Jul 17, 2024
1 parent acce0bc commit 601ef03
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 601ef03

Please sign in to comment.