-
Notifications
You must be signed in to change notification settings - Fork 70
47 lines (41 loc) · 1.08 KB
/
main.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
41
42
43
44
45
46
47
---
on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Linters
run: true # place-holder
test:
runs-on: ubuntu-latest
steps:
- name: Tests
run: true # place-holder
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, test]
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Set up tag name
id: tag
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
- name: Build
run: git ls-files | zip release-${{ steps.tag.outputs.tag }}.zip -@
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
files: release-${{ steps.tag.outputs.tag }}.zip
draft: true
generate_release_notes: true
fail_on_unmatched_files: true