Alteração de Schema CTe e CTe OS (#1019) #305
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 Master" | |
# Run workflow on commits to the `master` branch | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
jobs: | |
release: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.1.7 | |
- name: Install Java and Maven | |
uses: actions/setup-java@v4.2.1 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Adding ssh key | |
uses: webfactory/ssh-agent@v0.4.1 | |
with: | |
ssh-private-key: ${{ secrets.ssh_private_key }} | |
- name: Git configuration | |
run: | | |
git config user.email "ci@wmixvideo.com.br" | |
git config user.name "Wmix CI" | |
- name: Release Maven package | |
uses: samuelmeuli/action-maven-publish@v1.4.0 | |
with: | |
gpg_private_key: ${{ secrets.gpg_private_key }} | |
gpg_passphrase: ${{ secrets.gpg_passphrase }} | |
nexus_username: ${{ secrets.OSSRH_USERNAME }} | |
nexus_password: ${{ secrets.OSSRH_TOKEN }} | |
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests" -P ossrh | |
- name: Publish to GitHub Packages | |
run: mvn --batch-mode deploy -P github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |