Deploy to Netlify

This commit is contained in:
jonpas 2023-05-01 16:45:31 +02:00
parent 36a90a94aa
commit 5e83add1c7
2 changed files with 30 additions and 15 deletions

View File

@ -4,14 +4,8 @@ on:
push: push:
branches: branches:
- master - master
- pages-test
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency: concurrency:
group: "pages" group: "pages"
cancel-in-progress: false cancel-in-progress: false
@ -36,6 +30,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -50,20 +45,41 @@ jobs:
with: with:
source: docs/ source: docs/
destination: docs/_site/ destination: docs/_site/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1 - name: Upload Artifact
uses: actions/upload-artifact@v3
with: with:
name: jekyll-site
path: docs/_site/ path: docs/_site/
retention-days: 1
deploy: deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build] needs: [build]
environment:
name: netlify
url: ${{ steps.deployment.outputs.deploy-url }}
steps: steps:
- name: Deploy to GitHub Pages - name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: jekyll-site
path: _site/
- name: Deploy to Netlify
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: nwtgck/actions-netlify@v2
with:
publish-dir: _site/
production-branch: master
production-deploy: true
deploy-message: ${{ github.event.head_commit.message }}
enable-pull-request-comment: false
enable-commit-comment: false
enable-commit-status: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1

View File

@ -17,7 +17,6 @@ parent: wiki
<div class="large-12 columns"> <div class="large-12 columns">
<h1>Functions</h1> <h1>Functions</h1>
<p>Public API functions for use by mission makers and other mods to interface with ACE3. Backwards compatibility is supported for the following functions as much as possible.</p> <p>Public API functions for use by mission makers and other mods to interface with ACE3. Backwards compatibility is supported for the following functions as much as possible.</p>
<p>Test Deployment!</p>
</div> </div>
</div> </div>
<div class="row"> <div class="row">