Skip to content

Commit

Permalink
Merge pull request #661 from RafaelSTelles/adding-github-assets
Browse files Browse the repository at this point in the history
Adding GitHub assets
  • Loading branch information
fincatto authored Jun 8, 2020
2 parents e0c77c6 + d945d57 commit 4e014a9
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Generate jar
run: mvn clean package -DskipTests

- name: Generate zip
run: |
zip nfe.zip target/*.jar
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: nfe.zip
asset_name: nfe.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Caso não possua conhecimento técnico para criar notas fiscais, um profissional
<dependency>
<groupId>com.github.wmixvideo</groupId>
<artifactId>nfe</artifactId>
<version>3.0.5</version>
<version>${latest.release}</version>
</dependency>
```
Para acessar a lista de versões disponíveis, acesse a página de release [aqui](/releases) no github.

### Diretamente pelo código fonte (última versão em desenvolvimento)
```console
git clone https://github.com/wmixvideo/nfe
Expand Down

0 comments on commit 4e014a9

Please sign in to comment.