Skip to content

Commit

Permalink
v1.1.2 - Workflow change
Browse files Browse the repository at this point in the history
  • Loading branch information
kaubu committed Dec 1, 2023
1 parent 20cce1f commit 2bd47d0
Showing 1 changed file with 38 additions and 8 deletions.
46 changes: 38 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,48 @@
name: Build Vue

on: [push]

permissions:
actions: write
pages: write
contents: write
id-token: write

jobs:
build_vue:
# runs-on: ubuntu-latest
# name: Build Vue
# steps:
# - uses: actions/checkout@v2
# - id: Build-Vue
# uses: xRealNeon/[email protected]
# with:
# username: "pure-english"
# reponame: "name-generator"
# token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
name: Build Vue
steps:
- uses: actions/checkout@v2
- id: Build-Vue
uses: xRealNeon/[email protected]
with:
username: "pure-english"
reponame: "name-generator"
token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload dist repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 2bd47d0

Please sign in to comment.