-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.06 KB
/
release.yml
File metadata and controls
39 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: Release
on:
workflow_run:
workflows: ["ci"]
branches: [main]
types:
- completed
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Build project
run: |
make examples/plugin.wasm
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.75.0
id: version
env:
GITHUB_TOKEN: ${{ github.token }}
WITH_V: true
DEFAULT_BUMP: patch
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
RELEASE_BRANCHES: main
- name: Create release
uses: softprops/action-gh-release@v2
if: ${{ (steps.version.outputs.old_tag != '') }}
with:
tag_name: ${{ steps.version.outputs.new_tag }}
name: Release ${{ steps.version.outputs.new_tag }}
files: ./examples/plugin.wasm
generate_release_notes: true
make_latest: true
fail_on_unmatched_files: true