Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hidakatsuya committed Apr 15, 2021
1 parent 1b64bc3 commit d9f1710
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Update major version tag
run: |
version=$(echo "${{ github.ref }}" | sed -r "s/^.*(v[0-9]).*$/\1/")
echo "Major Version: $version"
git config --local user.email "github-actions"
git config --local user.name "[email protected]"
git tag -fa $version -m "Update $version tag"
git push -f origin $version
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ This action follows [the recommendations of GitHub Actions Versioning](https://g
$ yarn
$ yarn run package
```
## Releasing
1. Check the package contents are up-to-date
```
$ yarn run package
$ git diff
```
2. Create new release to publish to the GitHub Marketplace
3. Make sure that [the release workflow](https://github.com/hidakatsuya/setup-diff-pdf/actions/workflows/release.yml) is successful

0 comments on commit d9f1710

Please sign in to comment.