Skip to content

Commit 8f4928f

Browse files
authored
Create actions.yml
1 parent 70cebd0 commit 8f4928f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Deploy'
2+
description: 'Build and deploy workshop'
3+
4+
inputs:
5+
flavour:
6+
description: type of version to release
7+
required: true
8+
default: 'minor'
9+
10+
outputs:
11+
tag_name:
12+
description: name of tag created by bumpversion
13+
value: ${{ steps.bumpversion.outputs.tag_name }}
14+
15+
runs:
16+
using: "composite"
17+
steps:
18+
- name: Bumpversion and commit
19+
id: bumpversion
20+
shell: bash
21+
run: ./.github/ci/do_release -t ${{ inputs.flavour }}
22+
23+
- name: Build Site
24+
shell: bash
25+
run: ./.github/ci/build_site -b ${{ steps.bumpversion.outputs.base_url }} -t ${{ steps.bumpversion.outputs.tag_name }}
26+
27+
- name: Prepare and publish to GitHub pages
28+
shell: bash
29+
env:
30+
TOKEN: ${{ github.token }}
31+
run: ./.github/ci/publish_release -t ${{ steps.bumpversion.outputs.tag_name }}

0 commit comments

Comments
 (0)