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 name: Build
on: on:
pull_request:
branches:
- v4
push: push:
branches: branches:
- v4 - v4
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: "pages"
cancel-in-progress: false
steps: steps:
- run: git config --global core.quotepath false - run: git config --global core.quotepath false
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -30,13 +24,10 @@ jobs:
uses: actions/upload-pages-artifact@v2 uses: actions/upload-pages-artifact@v2
with: with:
path: ./public path: ./public
deploy: - name: Create private key
environment: run: |
name: github-pages echo "${{ secrets.PRIVATE_KEY }}" > /tmp/act_runner_key
url: ${{ steps.deployment.outputs.page_url}} chmod 600 /tmp/act_runner_key
runs-on: ubuntu-latest - name: rsync public directory
needs: build run: |
steps: 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
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2