Firq
5bfdb277fc
All checks were successful
/ checking (push) Successful in 15s
/ publish (push) Successful in 8s
/ build-site (push) Successful in 2m34s
/ deploy-unlighthouse-site (push) Successful in 7s
/ deploy-unlighthouse-files (push) Successful in 9s
/ unlighthouse (push) Successful in 1m7s
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
tags:
|
|
- '[0-9]+\.[0-9]+\.[0-9]+'
|
|
|
|
jobs:
|
|
checking:
|
|
runs-on: docker
|
|
container: node:lts
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
- name: Install packages
|
|
run: npm install
|
|
- name: Run astro check (linting + static analysis)
|
|
run: npm run astro check
|
|
|
|
build-site:
|
|
needs: [checking]
|
|
if: success()
|
|
runs-on: dind
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: forgejo.neshweb.net
|
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
|
- name: Push to Package Registry
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
tags: forgejo.neshweb.net/firq/firq-dev-website:${{ github.ref_name }}, forgejo.neshweb.net/firq/firq-dev-website:latest
|
|
|
|
release:
|
|
needs: [build-site]
|
|
if: success()
|
|
runs-on: docker
|
|
steps:
|
|
- name: Release New Version
|
|
uses: actions/forgejo-release@v1
|
|
with:
|
|
direction: upload
|
|
url: https://forgejo.neshweb.net
|
|
release-dir: release
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
|
tag: ${{ github.ref_name }}
|