-
-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (38 loc) · 1.32 KB
/
30-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
41
42
43
44
45
46
name: Automated Release
on:
workflow_run:
workflows: ['Deploy Site']
branches: [main]
types:
- completed
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Automated Release
runs-on: ubuntu-latest
timeout-minutes: 2
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
- name: Determine next semver patch version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch
- name: Create a new patch release with the new calendar fragment
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.version.outputs.v-version }}
tag_name: ${{ steps.version.outputs.v-version }}
files: dist/*
fail_on_unmatched_files: true
body: '🕒 This release was [automatically generated and released](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) at ${{ steps.date.outputs.date }}.'