Update .gitea/workflows/deploy.yml
Deploy / Deploy (push) Successful in 30s
Details
Deploy / Deploy (push) Successful in 30s
Details
This commit is contained in:
parent
efa2fae604
commit
99ef0ea4ed
|
|
@ -1,36 +1,10 @@
|
|||
name: Deploy
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [workflow_dispatch]
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
|
||||
- name: Check out repository code
|
||||
uses: RouxAntoine/checkout@v3.5.4
|
||||
|
||||
- name: Setup env
|
||||
run: |
|
||||
sudo apt update -y
|
||||
sudo apt install bundler -y
|
||||
|
||||
- run: cd ${{ gitea.workspace }}
|
||||
|
||||
- name: Setup bundle deps
|
||||
run: bundle install
|
||||
|
||||
- name: Build
|
||||
run: bundle exec jekyll build
|
||||
|
||||
- name: Deploy to alice
|
||||
run: |
|
||||
echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key
|
||||
chmod 600 /tmp/ssh_private_key
|
||||
mv _site alice
|
||||
scp -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key -P ${{ secrets.SSH_PORT_ALICE }} -r alice act_runner@alice.ufsj.edu.br:/var/www/html
|
||||
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
uses: https://git.alice.ufsj.edu.br/Carneiro/alice-sites-pull-action@main
|
||||
Loading…
Reference in New Issue