-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.05 KB
/
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
name: Release
run-name: Publish release branch or SemVer tags
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.*'
branches:
- website
- spa
- release/**
- devops
# Cancel any other running workflows with the same ID
concurrency:
group: cd-release-${{ github.ref }}
cancel-in-progress: true
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
version:
uses: ./.github/workflows/_version.yml
with:
project_search: "Bible.*"
build:
needs: [ version ]
uses: ./.github/workflows/_build-web.yml
with:
project_name: "Bible.Web"
project_version: ${{ needs.version.outputs.semVer }}
deploy:
if: ${{ github.event_name != 'pull_request' }}
needs: [ build ]
uses: ./.github/workflows/_deploy-web.yml
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
secrets: inherit