Skip to content

Instantly share code, notes, and snippets.

@adamjimenez
Last active April 25, 2024 13:02
Show Gist options
  • Save adamjimenez/d8d39ff221768f887de844c6f4cf1ff4 to your computer and use it in GitHub Desktop.
Save adamjimenez/d8d39ff221768f887de844c6f4cf1ff4 to your computer and use it in GitHub Desktop.
Workflow script to generate a new build
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