1.0.1 #4
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: Deploy | |
on: | |
release: | |
types: [ published, prereleased ] | |
jobs: | |
build: | |
name: Create And Upload Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Build release | |
run: ./scripts/deploy.sh ${{ steps.get_version.outputs.VERSION }} | |
- name: Upload Release | |
uses: JasonEtco/upload-to-release@master | |
with: | |
args: release/upgrade-${{ steps.get_version.outputs.VERSION }}.zip application/zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |