bugfixes #18
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: ["main"] | |
permissions: | |
contents: write | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
runs-on: windows-latest # The first job utilizes windows-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Pack mods | |
run: .\create_mods.ps1 | |
- name: Upload Artifacts 🔺 # The project is then uploaded as an artifact named 'site'. | |
uses: actions/upload-artifact@v1 | |
with: | |
name: site | |
path: build | |
deploy: | |
concurrency: ci-${{ github.ref }} | |
needs: [build] # The second job must depend on the first one to complete before running and uses ubuntu-latest instead of windows. | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Download Artifacts 🔻 # The built project is downloaded into the 'site' folder. | |
uses: actions/download-artifact@v1 | |
with: | |
name: site | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: "site" # The deployment folder should match the name of the artifact. Even though our project builds into the 'build' folder the artifact name of 'site' must be placed here. | |
clean-exclude: | | |
*.md |