mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-06-26 14:39:58 +00:00
Update repo.yml
Signed-off-by: David Lapshin <ddaudix@gmail.com>
This commit is contained in:
parent
494994bc20
commit
fd9cdf0d20
51
.github/workflows/repo.yml
vendored
51
.github/workflows/repo.yml
vendored
|
@ -1,47 +1,51 @@
|
|||
name: Repo
|
||||
|
||||
on:
|
||||
# Rebuild once a day
|
||||
#schedule:
|
||||
# - cron: "0 0 * * *"
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
flatpak:
|
||||
name: Flatpak
|
||||
flatter:
|
||||
name: Flatter
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/andyholmes/flatter/gnome:master
|
||||
options: --privileged
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
arch: [x86_64, aarch64]
|
||||
fail-fast: false
|
||||
# Only one job at a time can use the shared repository cache
|
||||
max-parallel: 1
|
||||
|
||||
steps:
|
||||
# Checkout a repository with Flatpak manifests
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
submodules: recursive
|
||||
|
||||
# See "Multiple Architectures" below
|
||||
- name: Setup QEMU
|
||||
if: ${{ matrix.arch == 'aarch64' }}
|
||||
id: qemu
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v2
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
# See "GPG Signing" below
|
||||
- name: Setup GPG
|
||||
id: gpg
|
||||
uses: crazy-max/ghaction-import-gpg@v6
|
||||
uses: crazy-max/ghaction-import-gpg@v5
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
- name: Build
|
||||
id: build
|
||||
uses: andyholmes/flatter@main
|
||||
with:
|
||||
files: |
|
||||
|
@ -49,11 +53,24 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
|
||||
upload-bundles: true
|
||||
upload-pages-artifact: true
|
||||
upload-pages-includes: |
|
||||
repo/default.css
|
||||
repo/index.html
|
||||
|
||||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v4
|
||||
with:
|
||||
folder: ${{ steps.build.outputs.repository }}
|
||||
target-folder: repo
|
||||
single-commit: true
|
||||
# See "Github Pages" below
|
||||
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@v2
|
||||
|
|
Loading…
Reference in a new issue