-
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (50 loc) · 1.73 KB
/
tools-dependencies-mirror-netlify.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
on:
pull_request:
branches: [ master ]
paths:
- 'starsky-tools/download-mirror-exiftool.sh'
- 'starsky-tools/download-mirror-ffmpeg.sh'
- 'starsky-tools/download-mirror-geonames.sh'
- 'starsky-tools/download-mirror.sh'
- '.github/workflows/tools-dependencies-mirror-netlify.yml'
push:
branches: [ master ]
paths:
- 'starsky-tools/download-mirror-exiftool.sh'
- 'starsky-tools/download-mirror-ffmpeg.sh'
- 'starsky-tools/download-mirror-geonames.sh'
- 'starsky-tools/download-mirror.sh'
- '.github/workflows/tools-dependencies-mirror-netlify.yml'
workflow_dispatch:
name: Tools dependencies mirror netlify
jobs:
test:
name: Mirror
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: download-mirror.sh
working-directory: starsky-tools/build-tools
run: bash download-mirror.sh
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: build-tools-mirror
path: ./starsky-tools/build-tools/mirror/
- name: ls && pwd
shell: bash
working-directory: ./starsky-tools/build-tools/mirror/
run: touch index.html && ls -lah && pwd
- name: Install Netlify
if: github.event_name != 'pull_request'
run: npm install netlify-cli@17.37.2 -g
- name: Deploy to Netlify
if: github.event_name != 'pull_request'
id: netlify_deploy
working-directory: ./starsky-tools/build-tools/
run: |
netlify deploy \
--dir mirror \
--site ${{ secrets.NETLIFY_MIRROR_SITE_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }}