-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.22 KB
/
ci-pipeline.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
47
48
49
name: CI-Pipeline
on:
push:
branches: [ '**/*' ]
tags: [ '**' ]
pull_request:
jobs:
build-site:
name: Build Site
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: build/downloads
key: dependencies-${{ hashFiles('dependencies.txt') }}
restore-keys: dependencies-
- name: Build
uses: ./.github/actions/execute-script-action
with:
script: build.sh
- name: Store build artifact
uses: actions/upload-artifact@v2
with:
name: site
path: build/packages/site.zip
publish-release:
name: Publish Release
if: startsWith(github.ref, 'refs/tags/')
needs: [ 'build-site' ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: site
path: build/packages/
- name: Create GitHub release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: "TODO: write release notes!"
files: |
build/packages/site.zip