Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantum-Boy authored Jul 8, 2024
1 parent 6404e3e commit b6ccddf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build and test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout respository
uses: actions/checkout@v2
- name: setup node.js
uses: actions/setup-node@v2
with:
node-version: '16.14'
- name: setup yarn
run: npm install -g yarn
- name: install depencies
run: yarn
- name: build
run: yarn build
- name: Copy Files 2 Server
uses: appleboy/scp-action@master
with:
host: ${{secrets.HOST}}
username: ${{secrets.USERNAME}}
password: ${{secrets.PASSWORD}}
port: 22
source: "/dist"
target: "/usr/web"

0 comments on commit b6ccddf

Please sign in to comment.