Update README.md #70
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: Tag and Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Get tag from package.json | |
id: get-tag | |
run: | | |
sudo apt update | |
sudo apt install -y jq | |
echo ::set-output name=tag::$(cat package.json | jq -r .version) | |
- name: Bump version and push tag | |
id: create_tag | |
uses: anothrNick/github-tag-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CUSTOM_TAG: v${{ steps.get-tag.outputs.tag }} | |
- name: Build project | |
uses: ./.github/build | |
env: | |
NEW_TAG: ${{ steps.create_tag.outputs.new_tag }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.create_tag.outputs.new_tag }} | |
release_name: Release ${{ steps.create_tag.outputs.new_tag }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./WBOT-linux.zip | |
asset_name: WBOT-linux.zip | |
asset_content_type: application/zip | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./WBOT-mac.zip | |
asset_name: WBOT-mac.zip | |
asset_content_type: application/zip | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./WBOT-win.zip | |
asset_name: WBOT-win.zip | |
asset_content_type: application/zip |