Skip to content

Commit

Permalink
remove convenience latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Sep 13, 2024
1 parent d3cc224 commit 9a7b81e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./programs/.bin/${{ env.PROGRAM_NAME }}.so
asset_name: ${{ inputs.program }}.so
asset_name: ${{ env.PROGRAM_NAME }}.so
asset_content_type: application/octet-stream

- name: Update latest tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/release/${{ inputs.program }}@latest',
sha: '${{ github.sha }}'
});
# - name: Update latest tag
# uses: actions/github-script@v5
# with:
# script: |
# github.rest.git.createRef({
# owner: context.repo.owner,
# repo: context.repo.repo,
# ref: 'refs/tags/release/${{ inputs.program }}@latest',
# sha: '${{ github.sha }}'
# });
6 changes: 3 additions & 3 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
git_ref:
description: Release tag (e.g. release/candy-machine-core@latest , release/[email protected]) or commit to deploy
description: Release tag (release/candy-machine-core@0.2.2 or release/[email protected]) or commit to deploy
required: true
type: string
default: release/candy-guard@latest
default: release/candy-guard@0.2.2
program:
description: Program (required if not a release tag)
required: false
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
if: needs.check_tag.outputs.type == 'release'
run: |
mkdir -p ${{ github.workspace }}/programs/.bin
curl -L -o ${{ github.workspace }}/programs/.bin/${{ steps.get_release.outputs.asset_name }} \
curl -L -o ${{ github.workspace }}/programs/.bin/${{ env.PROGRAM_NAME }}.so \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/octet-stream" \
"${{ steps.get_release.outputs.download_url }}"
Expand Down

0 comments on commit 9a7b81e

Please sign in to comment.