-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.09 KB
/
on-push-to-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
name: on push to main
on:
push:
branches:
- main
# Allow manually running this workflow.
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
detect_changed_files:
name: detect changed files
permissions:
pull-requests: read
uses: EarthmanMuons/reusable-workflows/.github/workflows/detect-changed-files.yml@main
deploy_github_pages:
name: deploy github pages
permissions:
actions: read
id-token: write
pages: write
needs: detect_changed_files
if: |-
needs.detect_changed_files.outputs.rust == 'true'
|| github.event_name == 'workflow_dispatch'
uses: EarthmanMuons/reusable-workflows/.github/workflows/deploy-github-pages-rust.yml@main
tag_untagged_releases:
name: tag untagged releases
needs: detect_changed_files
if: |-
needs.detect_changed_files.outputs.rust == 'true'
|| github.event_name == 'workflow_dispatch'
uses: EarthmanMuons/reusable-workflows/.github/workflows/tag-untagged-releases-rust.yml@main
secrets: inherit