gitea setting
Some checks failed
Build / build (push) Failing after 2m25s

This commit is contained in:
Tomoya Matsuura(MacBookPro) 2024-02-04 23:27:18 +09:00
parent 5e324d85a3
commit 4e844474c1

View File

@ -1,17 +1,11 @@
name: Build
on:
pull_request:
branches:
- v4
push:
branches:
- v4
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: "pages"
cancel-in-progress: false
steps:
- run: git config --global core.quotepath false
- uses: actions/checkout@v3
@ -30,13 +24,10 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: Create private key
run: |
echo "${{ secrets.PRIVATE_KEY }}" > /tmp/act_runner_key
chmod 600 /tmp/act_runner_key
- name: rsync public directory
run: |
rsync -avz --delete -e "ssh -i /tmp/act_runner_key -o StrictHostKeyChecking=no" ${{ gitea.workspace }}/public/* ${{ variables.WEBSERVER_USER }}@${{ variables.WEBSERVER_HOST }}:/var/www/html