-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (56 loc) · 1.56 KB
/
release-snapshot.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Release Snapshot
# Controls when the action will run.
on:
release:
types: [created]
jobs:
screenshot:
name: Screenshot
strategy:
matrix:
page: ['',vorwort, blog, impressum]
width: [420, 1200]
runs-on: macos-latest
steps:
- name: Screenshot
uses: swinton/[email protected]
with:
source: https://frauenweihe.de/${{ matrix.page }}
destination: frauenweihe.de-${{ matrix.page }}-${{ matrix.width }}.jpeg
type: 'jpeg'
scaleFactor: 1
full-page: true
width: ${{ matrix.width }}
path: ./
bundle:
name: bundle
needs: screenshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
path: snapshots
- name: Display structure of downloaded files
run: |
ls -R
mv snapshots/*/*.jpeg snapshots/
rm -r snapshots/*/
mkdir -p snapshots/mobil
mkdir -p snapshots/desktop
mv snapshots/*-1200.jpeg snapshots/desktop/
mv snapshots/*-420.jpeg snapshots/mobil/
ls -R
tar -cvf snapshots.tar snapshots
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: Snapshots
path: snapshots.tar
- name: Upload asset to release
uses: gacts/upload-to-release@master
env:
GITHUB_TOKEN: ${{ secrets.RELEASESNAPSHOT }}
with:
file: './snapshots.tar'
type: 'application/octet-stream'