Trying to fix deployment #2
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: Build JAR | |
on: [push, workflow_dispatch] | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
architecture: x64 | |
# - name: Build jar | |
# run: | | |
# javac -sourcepath ./src/ -d ./target/ ./src/Main.java | |
# jar cfe JBomberMan.jar Main ./target/*.class | |
- name: | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: 'latest' | |
prerelease: false | |
files: | | |
LICENSE.txt | |
*.jar | |
- uses: dev-drprasad/[email protected] | |
with: | |
keep_latest: 1 | |
delete_tags: true | |
delete_tag_pattern: latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# on: | |
# push: | |
# branches: | |
# - main | |
# | |
# workflow_dispatch: |