Skip to content

Commit

Permalink
use proper secret
Browse files Browse the repository at this point in the history
jfc I'm fed up with these games
  • Loading branch information
TicClick authored Jan 27, 2024
1 parent 4eee5d4 commit bbf3435
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ jobs:
- name: Upload (private)
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ASSET_GIST_HASH: ${{ secrets.ASSET_GIST_HASH }}
run: |
gh auth login --with-token < <( echo ${GH_TOKEN} )
existing_files=$( gh gist view "${ASSET_GIST_HASH}" --files )
platform_binary=$( ls steel-* )
if [[ ${existing_files} != *${platform_binary}* ]]; then
Expand All @@ -113,23 +112,20 @@ jobs:
- name: Tag all assets
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ASSET_GIST_HASH: ${{ secrets.ASSET_GIST_HASH }}
run: |
gh auth login --with-token < <( echo ${GH_TOKEN} )
gh gist clone "${ASSET_GIST_HASH}"
cd "${ASSET_GIST_HASH}"
git tag ${{ github.ref_name }}
git push --tags
- name: Update releases.json
shell: bash
run: |
gh auth login --with-token < <( echo ${GH_TOKEN} )
.github/update-private-metadata.py
run: .github/update-private-metadata.py
env:
ASSET_GIST_OWNER: TicClick
TAG_NAME: ${{ github.ref_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ASSET_GIST_HASH: ${{ secrets.ASSET_GIST_HASH }}
METADATA_GIST_HASH: ${{ secrets.METADATA_GIST_HASH }}

0 comments on commit bbf3435

Please sign in to comment.