Skip to content

Commit

Permalink
Updating Deploy template version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Melo committed Dec 13, 2023
1 parent 09aea3a commit 2ba029b
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Github Pages Astro CI
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
Expand All @@ -7,37 +7,29 @@ on:
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out your repository using git
- name: Checkout your repository using git
uses: actions/checkout@v4

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"

# Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
- name: Install dependencies
run: npm ci

# Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
- name: Build Astro
run: npm run build --if-present

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./dist
- name: Install, build, and upload your site output
uses: withastro/action@v1
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
environment:
Expand Down

0 comments on commit 2ba029b

Please sign in to comment.