Skip to content

Commit 9dc3398

Browse files
committed
Always run the make
Otherwise pull_requests (branch = '') will not be properly tested
1 parent 30743d1 commit 9dc3398

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

.github/workflows/deploy-website.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,3 @@ ssh-keyscan -H firehol.org >> ~/.ssh/known_hosts
2525
ssh [email protected] mkdir -p "website/$1/"
2626
rsync -a "$1" "$1.conf" [email protected]:"website/$1/"
2727
ssh [email protected] touch "website/$1/complete.txt"
28-
echo Checking deployment:
29-
sleep 300
30-
curl -o- https://firehol.org/travis-website.log

.github/workflows/publish.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,7 @@ jobs:
1111
echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/}|grep -v '/')";
1212
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/}|grep -v '/')";
1313
id: extract
14-
- name: Skip branches which use a name reserved for use on the server
15-
if: >-
16-
${{ steps.extract.outputs.branch == ''
17-
|| steps.extract.outputs.branch == 'www'
18-
|| steps.extract.outputs.branch == 'download'
19-
|| steps.extract.outputs.branch == 'static'
20-
|| steps.extract.outputs.branch == 'ssl'
21-
|| steps.extract.outputs.branch == 'webalizer'
22-
|| steps.extract.outputs.branch == 'tmp' }}
23-
run: >
24-
echo "Not publishing '${{steps.extract.outputs.branch}}'";
25-
echo "##[set-output name=skip;]true"
26-
id: check
27-
- if: ${{ ! steps.check.outputs.skip }}
28-
uses: actions/checkout@v2
29-
- if: ${{ ! steps.check.outputs.skip }}
30-
run: ./.github/workflows/setup.sh
31-
- if: ${{ ! steps.check.outputs.skip }}
32-
run: make
3314
- name: Write secret keys
34-
id: secret_keys
35-
if: ${{ ! steps.check.outputs.skip }}
3615
run: >
3716
echo "$FIREHOL_ORG_PUBLISH_SSH" > firehol_org_publish_key;
3817
chmod 600 firehol_org_publish_key;
@@ -47,9 +26,31 @@ jobs:
4726
rm -f firehol_org_publish_key
4827
env:
4928
FIREHOL_ORG_PUBLISH_SSH: ${{secrets.FIREHOL_ORG_PUBLISH_SSH}}
29+
id: secret_keys
30+
- name: Skip branches which use a name reserved for use on the server
31+
if: >-
32+
${{ steps.extract.outputs.branch == ''
33+
|| steps.extract.outputs.branch == 'www'
34+
|| steps.extract.outputs.branch == 'download'
35+
|| steps.extract.outputs.branch == 'static'
36+
|| steps.extract.outputs.branch == 'ssl'
37+
|| steps.extract.outputs.branch == 'webalizer'
38+
|| steps.extract.outputs.branch == 'tmp' }}
39+
run: >
40+
echo "Not publishing '${{steps.extract.outputs.branch}}'";
41+
echo "##[set-output name=skip;]true"
42+
id: check
43+
- uses: actions/checkout@v2
44+
- run: ./.github/workflows/setup.sh
45+
- run: make
5046
- name: Deploy website ${{steps.extract.outputs.branch}}
51-
if: ${{ steps.secret_keys.outputs.has_ssh_key }}
47+
if: ${{ steps.secret_keys.outputs.has_ssh_key && ! steps.check.outputs.skip }}
5248
run: ./.github/workflows/deploy-website.sh ${{steps.extract.outputs.branch}}
5349
env:
5450
SSH_AGENT_PID: ${{ steps.secret_keys.outputs.ssh_agent_pid }}
5551
SSH_AUTH_SOCK: ${{ steps.secret_keys.outputs.ssh_auth_sock }}
52+
- name: Check deployment
53+
if: ${{ steps.secret_keys.outputs.has_ssh_key && ! steps.check.outputs.skip }}
54+
run: >
55+
sleep 300;
56+
curl -q -o- https://firehol.org/travis-website.log

0 commit comments

Comments
 (0)