-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move release deployment script from Travis to GitHub actions
- Loading branch information
Showing
2 changed files
with
39 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'rvl/release-scripts' | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: '❄ Wait for Hydra build' | ||
uses: rvl/hydra-build-products-action@master | ||
id: hydra | ||
with: | ||
hydra: 'https://hydra.iohk.io' | ||
jobs: 'cardano-wallet-linux64 cardano-wallet-macos64 cardano-wallet-win64' | ||
|
||
- name: '🍒 Fetch release files' | ||
run: | | ||
for url in ${{ steps.hydra.outputs.buildProducts }}; do | ||
wget $url | ||
done | ||
- name: '🚀 Release' | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: docker://antonyurchenko/git-release:v3.4.4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DRAFT_RELEASE: "true" | ||
PRE_RELEASE: "false" | ||
# CHANGELOG_FILE: "ChangeLog.md" | ||
# ALLOW_EMPTY_CHANGELOG: "false" | ||
ALLOW_TAG_PREFIX: "true" | ||
with: | ||
args: '*.tar.gz *.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters