This commit is contained in:
parent
4b4e632a89
commit
6234e27107
1 changed files with 3 additions and 7 deletions
|
@ -4,9 +4,7 @@ on:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: based-alpine
|
||||||
container:
|
|
||||||
image: node:alpine
|
|
||||||
env:
|
env:
|
||||||
# stable
|
# stable
|
||||||
ZONA: zona
|
ZONA: zona
|
||||||
|
@ -15,9 +13,6 @@ jobs:
|
||||||
site: ficd.sh
|
site: ficd.sh
|
||||||
site_draft: draft.ficd.sh
|
site_draft: draft.ficd.sh
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
apk add --no-cache coreutils uv hut git
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
|
@ -35,8 +30,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/public-draft
|
cd $GITHUB_WORKSPACE/public-draft
|
||||||
tar -cvz . > ../public-draft.tar.gz
|
tar -cvz . > ../public-draft.tar.gz
|
||||||
- name: authenticate hut
|
- name: setup hut
|
||||||
run: |
|
run: |
|
||||||
|
apk add --no-cache hut
|
||||||
echo "${{ secrets.HUT_TOKEN }}" | hut init >/dev/null
|
echo "${{ secrets.HUT_TOKEN }}" | hut init >/dev/null
|
||||||
- name: deploy main
|
- name: deploy main
|
||||||
run: hut pages publish -d "$site" "$GITHUB_WORKSPACE/public.tar.gz"
|
run: hut pages publish -d "$site" "$GITHUB_WORKSPACE/public.tar.gz"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue