Skip to content

Commit 40f7c01

Browse files
authored
Update deploy.yml
Signed-off-by: Komal Rout <komalrout.kr@gmail.com>
1 parent 6e6f0b5 commit 40f7c01

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,29 @@
22
name: Deploy static content to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
6-
push:
7-
branches: ['main']
8-
9-
# Allows you to run this workflow manually from the Actions tab
5+
# Manual trigger only
106
workflow_dispatch:
117

12-
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
138
permissions:
149
contents: read
1510
pages: write
1611
id-token: write
1712

18-
# Allow one concurrent deployment
1913
concurrency:
2014
group: 'pages'
2115
cancel-in-progress: true
2216

2317
jobs:
24-
# Single deploy job since we're just deploying
2518
deploy:
2619
environment:
2720
name: github-pages
2821
url: ${{ steps.deployment.outputs.page_url }}
2922
runs-on: ubuntu-latest
3023
steps:
3124
- name: Checkout
32-
uses: actions/checkout@v5
25+
uses: [actions/checkout@v4](https://github.com)
3326
- name: Set up Node
34-
uses: actions/setup-node@v6
27+
uses: [actions/setup-node@v4](https://github.com)
3528
with:
3629
node-version: lts/*
3730
cache: 'npm'
@@ -42,12 +35,11 @@ jobs:
4235
env:
4336
VITE_LOCATIONIQ_API_KEY: ${{ secrets.VITE_LOCATIONIQ_API_KEY }}
4437
- name: Setup Pages
45-
uses: actions/configure-pages@v5
38+
uses: [actions/configure-pages@v5](https://github.com)
4639
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@v4
40+
uses: [actions/upload-pages-artifact@v3](https://github.com)
4841
with:
49-
# Upload dist folder
5042
path: './dist'
5143
- name: Deploy to GitHub Pages
5244
id: deployment
53-
uses: actions/deploy-pages@v4
45+
uses: [actions/deploy-pages@v4](https://github.com)

0 commit comments

Comments
 (0)