diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2021-12-20 19:24:24 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2021-12-20 19:24:24 -0500 |
commit | 0a9f1fb4d08adae0ff62437e9dcc4fdebfaa35c3 (patch) | |
tree | 0c6289623d645ee72d242a38eb05192e8c08ebdc /.github/workflows | |
parent | update pom (diff) | |
download | kenshinshideandseek-0a9f1fb4d08adae0ff62437e9dcc4fdebfaa35c3.tar.gz kenshinshideandseek-0a9f1fb4d08adae0ff62437e9dcc4fdebfaa35c3.tar.bz2 kenshinshideandseek-0a9f1fb4d08adae0ff62437e9dcc4fdebfaa35c3.zip |
switch to artifacts
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/beta.yml | 25 | ||||
-rw-r--r-- | .github/workflows/release.yml | 23 |
2 files changed, 31 insertions, 17 deletions
diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 565e980..a37bf00 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -1,4 +1,4 @@ -name: Beta +name: Release on: push: @@ -8,9 +8,6 @@ jobs: build: runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - name: Checkout branch @@ -22,9 +19,19 @@ jobs: java-version: 1.8 - name: Build with Maven - run: mvn -B package --file pom.xml + run: + mvn -B package --file pom.xml + mkdir staging && cp target/*.jar staging - - name: Publish to GitHub Packages Apache Maven - run: mvn -B deploy - env: - GITHUB_TOKEN: ${{ github.token }} + - name: Set up a cache for maven + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Upload artificats + uses: actions/upload-artifact@v2 + with: + name: github-actions-artifact + path: staging diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d06e8ac..b601a73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,9 +8,6 @@ jobs: build: runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - name: Checkout branch @@ -22,9 +19,19 @@ jobs: java-version: 1.8 - name: Build with Maven - run: mvn -B package --file pom.xml + run: + mvn -B package --file pom.xml + mkdir staging && cp target/*.jar staging - - name: Publish to GitHub Packages Apache Maven - run: mvn -B deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up a cache for maven + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Upload artificats + uses: actions/upload-artifact@v2 + with: + name: github-actions-artifact + path: staging |