fix: policy change #32
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: Release Drafter | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
release: | |
types: [created, published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 14.15.1 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.15.1 | |
- name: npm run setup && npm run dist | |
run: | | |
npm run setup && npm run dist | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: uploadlog.md | |
draft: false | |
prerelease: false | |
- name: Upload a Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./builds/starmask-chrome-5.2.5.zip | |
asset_name: starmask-chrome-5.2.5.zip | |
asset_content_type: application/zip |