Initialize AutoLibrary website with Gitea deployment
This commit is contained in:
commit
18216953e7
101 files changed
+12581
No files matched your search
@@ -0,0 +1,26 @@
|
||||
name: Deploy AutoLibrary Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: autolibrary-production
|
||||
steps:
|
||||
- name: Check out the pushed commit
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
github-server-url: ${{ gitea.server_url }}
|
||||
ref: ${{ gitea.sha }}
|
||||
|
||||
- name: Build and test
|
||||
shell: bash
|
||||
run: bash deploy/build.sh
|
||||
|
||||
- name: Deploy and verify
|
||||
shell: bash
|
||||
env:
|
||||
RELEASE_SHA: ${{ gitea.sha }}
|
||||
AUTOLIBRARY_PORT: ${{ vars.AUTOLIBRARY_PORT || '3003' }}
|
||||
run: bash deploy/publish.sh
|
||||
Reference in new issue
Block a user