Skip to content

Instantly share code, notes, and snippets.

@TheMartinfer22
Created July 5, 2022 19:26
Show Gist options
  • Save TheMartinfer22/8dbad09ef0ac36d8217f2af1da47adbf to your computer and use it in GitHub Desktop.
Save TheMartinfer22/8dbad09ef0ac36d8217f2af1da47adbf to your computer and use it in GitHub Desktop.
Github Actions script para arquivar tudo em um zip e upar ele criando uma release ou sobrescrevendo a tag latest
name: "release"
on:
push:
branches:
- "main"
jobs:
pre-release:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@master
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'ExampleArchive-latest.zip'
exclusions: '*.git* /*node_modules/* .editorconfig'
- name: Upload Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "ExampleArchive"
files: 'ExampleArchive-latest.zip'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment