Skip to content

Commit 257cbc1

Browse files
authored
Merge pull request #28 from Shopify/add-release-workflow
Add release workflow
2 parents 9634c72 + 3803631 commit 257cbc1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
publish:
10+
runs-on: shopify-ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
name: Checkout
15+
16+
- name: Create release
17+
uses: actions/github-script@v6
18+
with:
19+
github-token: "${{ secrets.GITHUB_TOKEN }}"
20+
script: |
21+
await github.rest.repos.createRelease({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
tag_name: "${{ github.ref }}",
25+
name: "${{ github.ref_name }}",
26+
generate_release_notes: true
27+
})

0 commit comments

Comments
 (0)