mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-10-02 17:54:09 +10:00
* Update actions/checkout consistently to v7 * Update pnpm/action-setup to v6 With pnpm v11 this could and should be replaced with pnpm/setup, I guess. * Update actions/setup-node consistently to v7 * Update actions/configure-pages to v6 It looks like this should be non-critical, it mainly includes a runtime upgrade to Node 24 as far as I could see that. * Update actions/cache to v6 * Update docker/metadata-action to v6 I think this is also non-critical and mainly a runtime bump. * Update docker/login-action to v4 Should also be just the node version bump. * Update docker/setup-buildx-action to v4 * Update docker/setup-qemu-action to v4 * Update docker/build-push-action to v7 * Update actions/upload-artifact to v7 * Update actions/download-artifact to v8 This is quite a jump and I'm not very familiar with this action. But the changelogs looked more or less not critical, there was only a thing about downloading single artifacts by id in v5, but I think the "No Action Needed If" applies.
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: Deploy to GitHub Pages
|
||
|
||
on:
|
||
# Trigger the workflow every time you push to the `main` branch
|
||
# Using a different branch name? Replace `main` with your branch’s name
|
||
push:
|
||
branches: [master]
|
||
# Allows you to run this workflow manually from the Actions tab on GitHub.
|
||
workflow_dispatch:
|
||
|
||
# Allow this job to clone the repo and create a page deployment
|
||
permissions:
|
||
contents: read
|
||
pages: write
|
||
id-token: write
|
||
|
||
jobs:
|
||
build:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout your repository using git
|
||
uses: actions/checkout@v7
|
||
- name: Install, build, and upload your site output
|
||
uses: withastro/action@v5
|
||
# with:
|
||
# path: . # The root location of your Astro project inside the repository. (optional)
|
||
# node-version: 22 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
|
||
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
|
||
# build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional)
|
||
|
||
deploy:
|
||
needs: build
|
||
runs-on: ubuntu-latest
|
||
environment:
|
||
name: github-pages
|
||
url: ${{ steps.deployment.outputs.page_url }}
|
||
steps:
|
||
- name: Deploy to GitHub Pages
|
||
id: deployment
|
||
uses: actions/deploy-pages@v4
|