Bump actions/upload-artifact from 3 to 4 (#188) #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fresh to vercel | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deployMasterToVercel: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.110.0' | |
extended: true | |
- name: Build with Hugo on master | |
working-directory: exampleSite | |
run: | | |
hugo \ | |
--minify \ | |
--baseURL https://hugo-fresh.vercel.app/ | |
- name: Deploy to Vercel on master | |
uses: amondnet/vercel-action@v25 | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} | |
vercel-project-name: hugo-fresh | |
vercel-args: '--prod' | |
working-directory: ./exampleSite/public |