Created
July 5, 2022 19:26
-
-
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
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: "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