ci: deploy fixed version #3
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
name: Deploy pages staging | |
'on': | |
push: | |
branches: | |
- master | |
workflow_dispatch: {} | |
jobs: | |
job: | |
name: Github Pages Staging | |
runs-on: ubuntu-22.04 | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- name: Checkout Freelancer | |
uses: darklab8/infra/.github/actions/checkout-freelancer@master | |
with: | |
freelancer-mod: discovery | |
freelancer-folder: ${{ github.workspace }}/fl-data | |
ssh-key-base64-discovery: ${{ secrets.ID_RSA_FILES_FREELANCER_DISCOVERY }} | |
- run: ls ./fl-data | |
- name: Install Go | |
uses: darklab8/infra/.github/actions/install-go@master | |
- name: Install Taskfile | |
uses: darklab8/infra/.github/actions/install-taskfile@master | |
- name: Install Templ | |
uses: darklab8/infra/.github/actions/install-templ@master | |
- name: generate Templ files | |
run: templ generate | |
- name: add versions | |
run: task build-version | |
- name: Patch freelancer discovery to latest | |
uses: darklab8/infra/.github/actions/patch-disco@master | |
with: | |
freelancer-folder: ${{ github.workspace }}/fl-data | |
- name: Test things | |
run: task test -- -v | |
env: | |
FLDARKDATA_LOG_LEVEL: DEBUG | |
- name: build | |
run: task build | |
env: | |
SITE_ROOT: /fl-darkstat/ | |
FREELANCER_FOLDER: ${{ github.workspace }}/fl-data | |
FLDARKSTAT_HEADING: <span style="font-weight:1000;">DEV ENV</span> <a href="https://github.com/darklab8/fl-darkstat">fl-darkstat</a> for <a href="https://github.com/darklab8/fl-data-discovery">Freelancer Discovery</a> | |
DARKSTAT_DETAILED: 'false' | |
RELAY_HOST: https://darkrelay-staging.dd84ai.com | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
name: github-pages | |
path: './build' | |
- uses: actions/deploy-pages@v1 | |
id: deployment |