Update download.yml #17
Workflow file for this run
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
name: Download Release | |
# Controls when the workflow will run | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags ver | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
get_asset: | |
runs-on: ubuntu-latest | |
steps: | |
- name: List Releases | |
run: gh release list --repo adminxeq/xeq-wallet | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW }} | |
- name: Fetch asset | |
run: gh release download --repo adminxeq/xeq-wallet v22.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW }} | |
- name: See what we downloaded | |
run: ls | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ${{ runner.OS }} | |
path: . | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./* | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW }} |