Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EazyFTW committed Sep 9, 2021
2 parents c7e8432 + 986cc81 commit 419f7fe
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
path: build/libs/DiscordOAuth.jar
name: DiscordOAuth.jar
build: build-${{ github.run_number }}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Gradlew Permission
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.build }}
release_name: Release ${{ env.build }}

- 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: ${{ env.path }}
asset_name: ${{ env.name }}
asset_content_type: application/java-archive

0 comments on commit 419f7fe

Please sign in to comment.