forked from vuejs/create-vue
-
-
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
1 parent
6e94332
commit 864237b
Showing
1 changed file
with
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build dist | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js | ||
uses: actions/setup-node@main | ||
with: | ||
node-version: 20.x | ||
|
||
- name: npm install and build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: prepare dist folder | ||
run: | | ||
mkdir dist | ||
mv outfile.cjs dist | ||
mv template dist | ||
- name: Deploy | ||
uses: s0/git-publish-subdir-action@develop | ||
env: | ||
REPO: self | ||
BRANCH: dist | ||
FOLDER: dist | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |