Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new GitHub action for creating unstable release #2007

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/update_release@v1.3.1
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
Loading