From 9a7b81ea2db530230d656e1cd0d40c98ad09be68 Mon Sep 17 00:00:00 2001 From: Nhan Phan Date: Fri, 13 Sep 2024 00:03:40 -0700 Subject: [PATCH] remove convenience latest tag --- .github/workflows/create-release.yml | 22 +++++++++++----------- .github/workflows/deploy-program.yml | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 5d3a144..4c75965 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -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 }}' - }); \ No newline at end of file + # - 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 }}' + # }); \ No newline at end of file diff --git a/.github/workflows/deploy-program.yml b/.github/workflows/deploy-program.yml index 944edd2..72010d7 100644 --- a/.github/workflows/deploy-program.yml +++ b/.github/workflows/deploy-program.yml @@ -4,10 +4,10 @@ on: workflow_dispatch: inputs: git_ref: - description: Release tag (e.g. release/candy-machine-core@latest , release/candy-guard@0.2.1) or commit to deploy + description: Release tag (release/candy-machine-core@0.2.2 or release/candy-guard@0.2.1) 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 @@ -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 }}"