-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (34 loc) · 1.12 KB
/
create-release.yml
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
40
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
name: Create Release
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Replace Version
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "dev_version"
replace: ${{github.ref_name}}
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: 'BlissfulIgnorance.ext'
exclusions: '*.git* *.github* *.resources* *.vscode* /*node_modules/* .editorconfig *.ext'
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "BlissfulIgnorance.ext"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true