Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
[fix] update Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Dias Gonçalves committed Mar 13, 2024
1 parent 6dc7373 commit 0d4b8a6
Showing 1 changed file with 11 additions and 46 deletions.
57 changes: 11 additions & 46 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
name: Deploy

on:
push:
branches:
- main

name: Build Vue
on: [push]
jobs:
build:
name: Build
build_vue:
runs-on: ubuntu-latest

name: Build Vue
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Build project
run: npm run build

- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
- uses: actions/checkout@v2
- id: Build-Vue
uses: xRealNeon/[email protected]
with:
username: 'BrunoDG'
reponame: 'Moralizada_ShiandeGames'
token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged

0 comments on commit 0d4b8a6

Please sign in to comment.