From eddc8a1f8371185abdd78e96cda41df3d16c5b05 Mon Sep 17 00:00:00 2001 From: Dragos Mateescu Date: Mon, 7 Jun 2021 13:12:29 +0300 Subject: [PATCH] add github automatic release action --- .github/workflows/github-actions.yml | 39 ++++++++++++++++++---------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 711d62e1c..7787a68c4 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -1,17 +1,28 @@ -name: GitHub Actions Demo -on: [push] +--- +name: "pre-release" + +on: + push: + branches: + - "master" + jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest + pre-release: + name: "Pre Release" + runs-on: "ubuntu-latest" + steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v2 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository + # ... + - name: "Build & test" run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + echo "done!" + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + LICENSE.txt + *.jar