-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
on: push | ||
name: demo | ||
jobs: | ||
job1: | ||
name: "job1 work" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: look pwd | ||
run: pwd | ||
- name: look ls | ||
run: ls | ||
job2: | ||
name: "job2 work" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: look go | ||
run: go version | ||
- name: look node | ||
run: node --version | ||
# on: push | ||
# name: demo | ||
# jobs: | ||
# job1: | ||
# name: "job1 work" | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: look pwd | ||
# run: pwd | ||
# - name: look ls | ||
# run: ls | ||
# job2: | ||
# name: "job2 work" | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: look go | ||
# run: go version | ||
# - name: look node | ||
# run: node --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
name: build and delopy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
build: | ||
name: npm构建vite项目 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 用git拉取项目 | ||
uses: actions/checkout@v4 | ||
- run: pwd && ls -al | ||
- name: 安装node依赖&&构建node项目 | ||
run: npm install && npm run build | ||
- name: 部署github pages(即push构建目录dist到gh-pages分支) | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: dist | ||
# name: build and delopy | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
# permissions: | ||
# contents: write | ||
# jobs: | ||
# build: | ||
# name: npm构建vite项目 | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: 用git拉取项目 | ||
# uses: actions/checkout@v4 | ||
# - run: pwd && ls -al | ||
# - name: 安装node依赖&&构建node项目 | ||
# run: npm install && npm run build | ||
# - name: 部署github pages(即push构建目录dist到gh-pages分支) | ||
# uses: JamesIves/github-pages-deploy-action@v4 | ||
# with: | ||
# branch: gh-pages | ||
# folder: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters