-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.13 KB
/
Copy pathmain.yml
File metadata and controls
47 lines (41 loc) · 1.13 KB
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
name: Deploy project JSON
on:
push:
branches: main
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
ref: main
token: ${{ github.token }}
fetch-depth: 0
- name: Get Version
id: version
uses: paulhatch/semantic-version@v5.0.2
with:
bump_each_commit: true
- name: Create JSON File
id: create
uses: ./.github/actions/create-json-file
with:
json-version: "${{ steps.version.outputs.version }}"
- name: Checkout Page branch
uses: actions/checkout@v3
with:
ref: page
token: ${{ github.token }}
fetch-depth: 0
- name: Write JSON File
id: write
uses: ./.github/actions/write-json-file
with:
data: "${{ steps.create.outputs.data }}"
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
author_email: marcus@cuda.org
tag: "v${{ steps.version.outputs.version }}-json"