Skip to content

Commit

Permalink
Update gh-pages-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
e965 authored Oct 5, 2023
1 parent e0053bc commit e7d88ed
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
name: Build and Deploy

on: [push]
on:
push:
branches: ["master"]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest

environment:
name: github-pages
url: https://e965.ru
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Deploy 🚀
uses: JamesIves/[email protected]
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
branch: gh-pages
folder: dist
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit e7d88ed

Please sign in to comment.