This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
bump actions/deploy-pages from 1 to 4 #48
Workflow file for this run
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: Flatter | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: | |
jobs: | |
flatter: | |
name: Flatter | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/andyholmes/flatter/freedesktop:22.08 | |
options: --privileged | |
steps: | |
# Checkout a repository with Flatpak manifests | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# See "GPG Signing" below | |
- name: Setup GPG | |
id: gpg | |
uses: crazy-max/ghaction-import-gpg@v5 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
# Generate a CNAME file on-the-fly for a configured host | |
- name: Generate CNAME | |
run: | | |
echo "glaumar.github.io" > CNAME | |
- name: Install build dependencies | |
run: | | |
flatpak install org.freedesktop.Sdk.Extension.node18/x86_64/22.08 -y | |
flatpak install org.freedesktop.Sdk.Extension.golang/x86_64/22.08 -y | |
- name: Build | |
uses: andyholmes/flatter@main | |
with: | |
files: | | |
io.github.glaumar.v2raya_flatpak.yml | |
arch: x86_64 | |
gpg-sign: ${{ steps.gpg.outputs.fingerprint }} | |
upload-bundles: true | |
upload-pages-artifact: true | |
upload-pages-includes: | | |
CNAME | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
needs: flatter | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |