-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.09 KB
/
web.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# x-t.github.io (c) 2023
# This work is licensed under the Creative Commons
# Attribution-NonCommercial-ShareAlike 4.0 International
# License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc-sa/4.0/ or
# send a letter to Creative Commons, PO Box 1866,
# Mountain View, CA 94042, USA.
name: Build and deploy frontend
on:
push:
paths:
- "apps/web/**"
- ".github/workflows/web.yml"
- ".github/workflows/neocities.yml"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: apps/web/root
mirror:
needs: build-and-deploy
uses: "./.github/workflows/neocities.yml"
secrets:
NEOCITIES_API_KEY: ${{ secrets.NEOCITIES_API_TOKEN }}