forgejo-ci: public not in subdir
This commit is contained in:
parent
ee7358764e
commit
eda30d5de5
1 changed files with 2 additions and 4 deletions
|
@ -10,19 +10,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Environment setup
|
- name: Environment setup
|
||||||
run: |
|
run: |
|
||||||
apk add git nodejs jq coreutils curl
|
apk add git nodejs jq coreutils curl tree
|
||||||
echo "GITHUB_PR_NAME=$(curl -Ls ${{ github.server_url }}/api/v1/repos/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':' | tr -d '"' | tr '[:upper:]' '[:lower:]' )" >> $GITHUB_ENV
|
echo "GITHUB_PR_NAME=$(curl -Ls ${{ github.server_url }}/api/v1/repos/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':' | tr -d '"' | tr '[:upper:]' '[:lower:]' )" >> $GITHUB_ENV
|
||||||
- name: Public repo pull
|
- name: Public repo pull
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: public
|
|
||||||
path: public
|
|
||||||
token: ${{ secrets.PAGES_TOKEN }}
|
token: ${{ secrets.PAGES_TOKEN }}
|
||||||
- name: Render website
|
- name: Render website
|
||||||
run: |
|
run: |
|
||||||
rm -rf previews/$GITHUB_PR_NAME || true
|
rm -rf previews/$GITHUB_PR_NAME || true
|
||||||
cd public/previews
|
cd previews
|
||||||
tree -d -H '.' -L 1 --noreport --charset utf-8 -T "Versions" -o index.html
|
tree -d -H '.' -L 1 --noreport --charset utf-8 -T "Versions" -o index.html
|
||||||
- name: Website upload
|
- name: Website upload
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue