Update main.yml #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deploy GitHub Pages | |
name: Build and deploy eQuantum site | |
# Runs on workflow_run.conclusion | |
on: | |
push: | |
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 | |
outputs: | |
runner: ${{ steps.set-runner.outputs.use-runner }} | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: πͺ Pre-build Maps | |
#if: runner.os == 'Windows' | |
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: π Cloud Config | |
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 |