Skip to content

Commit 43ec614

Browse files
authored
Update main.yml
1 parent 5e9aa83 commit 43ec614

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ name: Build and deploy eQuantum site
33

44
# 💎 Runs on workflow_run.conclusion
55
on:
6+
push:
67
workflow_run:
7-
types: [completed] #requested
8+
types: [completed]
89
workflows: ["pages-build-deployment"]
910

1011
# 🪂 Allow concurrent deployment
@@ -26,7 +27,8 @@ env:
2627
jobs:
2728
# Build job
2829
github-pages:
29-
if: github.event.workflow_run.conclusion == 'success'
30+
if: ${{github.event_name == 'push' ||
31+
github.event.workflow_run.conclusion == 'success'}}
3032
runs-on: ${{github.ref_name != 'main' && 'ubuntu-latest' || (
3133
github.ref_protected && 'windows-latest' || 'self-hosted') }}
3234
steps:
@@ -41,16 +43,17 @@ jobs:
4143
with:
4244
pre_build_commands: 'make build'
4345
token: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
44-
owner: ${{ secrets.JEKYLL_GITHUB_OWNER }}
4546

4647
- name: 📂Build on Windows
4748
if: runner.os == 'Windows'
4849
uses: eq19/maps@v1
4950
with:
5051
dotnet-version: '3.1.x'
51-
owner: ${{ secrets.JEKYLL_GITHUB_OWNER }}
52+
token: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
5253

5354
- name: 📂Build on Self-Hosted
54-
if: ${{ (runner.os != 'Linux') && (runner.os != 'Windows') }}
55+
if: ${{runner.os != 'Linux' && runner.os != 'Windows'}}
5556
uses: actions/checkout@v2
56-
57+
with:
58+
token: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
59+

0 commit comments

Comments
 (0)