mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 02:38:12 +02:00
Hopefully this works.
This commit is contained in:
1 parent
3222f5aa99
commit
2c8ccd51db
6 files changed
+318
-47
No files matched your search
@@ -0,0 +1,55 @@
|
||||
name: Build And Deploy Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: Pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "8.5"
|
||||
coverage: none
|
||||
|
||||
- name: Configure Pages
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Build Website
|
||||
run: php Build.php
|
||||
|
||||
- name: Upload Website
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
path: ./_Site
|
||||
|
||||
Deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.Deployment.outputs.page_url }}
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build
|
||||
|
||||
steps:
|
||||
- name: Deploy Website
|
||||
id: Deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
Reference in new issue
Block a user