Atualizar .forgero/workflows/build.yml
Some checks failed
Build Eleventy / build (24.x) (push) Has been cancelled
Some checks failed
Build Eleventy / build (24.x) (push) Has been cancelled
This commit is contained in:
parent
664eed341a
commit
8fb030d20f
1 changed files with 0 additions and 0 deletions
|
|
@ -1,49 +0,0 @@
|
|||
name: Build Eleventy
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '/maintenance/**'
|
||||
- '/README.md'
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '/maintenance/**'
|
||||
- '/README.md'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: arch-linux
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [24.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install dependencies & build
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Deploy to forgejo-pages
|
||||
run: |
|
||||
git config user.email "adrianvictor+webmaster@disroot.org"
|
||||
git config user.name "mareguma"
|
||||
git checkout --orphan forgejo-pages
|
||||
git rm -rf .
|
||||
cp -r docs/* .
|
||||
git add .
|
||||
git commit -m "Deploy: $(date)"
|
||||
git push -f origin forgejo-pages
|
||||
Loading…
Add table
Add a link
Reference in a new issue