Skip to content

Commit

Permalink
Update pipeline to use self action and create release
Browse files Browse the repository at this point in the history
  • Loading branch information
1k-off committed Feb 25, 2023
1 parent 1bedced commit ce823b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,18 @@ jobs:
steps:
- name: Download artifact
uses: actions/download-artifact@v3
- run: chmod +x semver-tag-release-linux-amd64/semver-tag-release-linux-amd64
- run: ./semver-tag-release-linux-amd64/semver-tag-release-linux-amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CREATE_RELEASE: true
ASSETS: |
- uses: 1k-off/[email protected]
id: tag
with:
version: latest
github_token: ${{ secrets.GITHUB_TOKEN }}
release_tag: patch
pre_release_tag: ""
create_release: true
assets: |
semver-tag-release-linux-amd64/semver-tag-release-linux-amd64
semver-tag-release-linux-arm64/semver-tag-release-linux-arm64
semver-tag-release-darwin-amd64/semver-tag-release-darwin-amd64
semver-tag-release-darwin-arm64/semver-tag-release-darwin-arm64
semver-tag-release-windows-amd64.exe/semver-tag-release-windows-amd64.exe
semver-tag-release-windows-arm64.exe/semver-tag-release-windows-arm64.exe
semver-tag-release-windows-arm64.exe/semver-tag-release-windows-arm64.exe
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This action creates a tag based on the previous tags and increments version. It
## Example usage
1. Create tag and release with patch version increment
```yaml
- uses: 1k-off/action-semver-tag-release@latest
- uses: 1k-off/action-semver-tag-release@1.0.1
id: tag
with:
version: latest
Expand All @@ -47,15 +47,15 @@ This action creates a tag based on the previous tags and increments version. It
```
2. Only create tag
```yaml
- uses: 1k-off/action-semver-tag-release@latest
- uses: 1k-off/action-semver-tag-release@1.0.1
id: tag
with:
version: latest
github_token: ${{ secrets.GITHUB_TOKEN }}
```
3. Create tag and pre-release with minor version increment
```yaml
- uses: 1k-off/action-semver-tag-release@latest
- uses: 1k-off/action-semver-tag-release@1.0.1
id: tag
with:
version: latest
Expand Down

0 comments on commit ce823b7

Please sign in to comment.