Skip to content

Commit

Permalink
Merge pull request #2007 from input-output-hk/dlachaume/1691/use-new-…
Browse files Browse the repository at this point in the history
…github-action-for-unstable-release

Use new GitHub action for creating `unstable` release
  • Loading branch information
dlachaume authored Oct 15, 2024
2 parents 7c077cb + 3c46682 commit 8fbaaee
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -588,24 +588,26 @@ jobs:
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "⛔", "testing-preview": "✔", "testing-sanchonet": "✔" }'

- name: Delete unstable release and associated tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh release view unstable -R ${{ github.repository }} &>/dev/null; then
gh release delete unstable --cleanup-tag -y -R ${{ github.repository }}
else
echo "Release 'unstable' not found, skipping deletion."
fi
- name: Update unstable release
uses: marvinpinto/action-automatic-releases@latest
uses: softprops/action-gh-release@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: unstable
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: unstable
prerelease: true
title: Unstable Development Builds
name: Unstable Development Builds
files: package/*

- name: Update unstable release body with release notes addon
# specific version since this action does not support giving only the major number
uses: tubone24/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: unstable
with:
is_append_body: true
body_path: ./release-notes-addon.txt
append_body: true

deploy-testing:
if: vars.DEPLOY_NETWORKS_IN_CI == 'true' && (github.event_name == 'push' || github.event_name == 'pull_request')
Expand Down

0 comments on commit 8fbaaee

Please sign in to comment.