Skip to content

Workflow file for this run

name: Deploy GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download ZIP file
run: curl -L -o meshviewer-build.zip https://github.com/freifunk/meshviewer/releases/download/v12.4.0/meshviewer-build.zip
- name: Extract ZIP file
run: unzip meshviewer-build.zip -d output
- name: Add configuration file
run: cp config.json output/config.json
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: output
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action