forked from apache/maven-javadoc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (92 loc) · 2.74 KB
/
main.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Main Workflow of eQuantum Project
# Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Build and deploy eQuantum site
# Runs on workflow_run.conclusion
on:
push:
paths:
- '.github/**'
- '!**/reserves/**'
workflow_run:
types: [completed]
workflows: ["pages-build-deployment"]
# Allow concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Set GITHUB_TOKEN scopes
permissions: write-all
# Global environtment variables
env:
RUN: ${{ github.run_id }}
USER: ${{ github.actor }}
REPO: ${{ github.repository }}
OWNER: ${{ github.repository_owner }}
ACTOR: ${{ github.triggering_actor }}
jobs:
determine-runner:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
outputs:
runner: ${{ steps.set-runner.outputs.use-runner }}
steps:
- name: 📂 Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: 🪂 Pre-build Maps
uses: eq19/maps@v2
with:
docker_hub_username: ${{ github.actor }}
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
dockerfile_path: ./.devcontainer/Dockerfile
credentials: ${{ secrets.GCP_CREDENTIALS }}
image_name: "prime"
image_tag: "latest"
- name: 🚀 Build Feed on Linux
#if: runner.os == 'Windows'
uses: eq19/feed@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: 🚀 Setup Lexer on Cloud
uses: eq19/lexer@v1
id: set-runner
with:
repository: ${{ github.repository }}
token: ${{ secrets.ACCESS_TOKEN }}
credentials: ${{ secrets.GCP_CREDENTIALS }}
github-pages:
needs: determine-runner
strategy:
max-parallel: 1
fail-fast: false
matrix:
#node_version: [8, 10, 12]
os: [windows-latest, self-hosted]
runs-on: ${{ matrix.os }}
#runs-on: ${{ fromJson(needs.determine-runner.outputs.runner) }}
if: ${{github.event_name == 'push' ||
github.event.workflow_run.conclusion == 'success'}}
steps:
- name: 📂 Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
#repository: eq19/eq19.github.io
- name: 🚀 Setup Parser
#if: runner.os != 'Windows'
uses: eq19/parser@v1
- name: 🪂 Evaluate Syntax
if: runner.os == 'Windows'
uses: eq19/syntax@v2
with:
wsl-conf: |
[automount]
root = /
- name: 🪂 Set Grammar Rules
if: runner.os != 'Windows'
uses: eq19/grammar@v3