Last active
April 25, 2024 13:02
-
-
Save adamjimenez/d8d39ff221768f887de844c6f4cf1ff4 to your computer and use it in GitHub Desktop.
Workflow script to generate a new build
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: Build and deploy | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm install | |
- name: Build project | |
run: npm run build | |
- name: Compress action step | |
run: cd dist; zip -r ../dist.zip *; cd .. | |
- name: Deploy using curl POST | |
run: curl -X POST ${{ secrets.DEPLOY_URL }} -F upload=@dist.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment