Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Feb 21, 2024
1 parent 80c0bdf commit bbcfde5
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@ name: Build and Release APK

on:
workflow_dispatch:
push:
paths:
- '**.yml'

jobs:
build-docs:
uses: ./.github/workflows/build-docs.yml

build:

needs:
- build-docs

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -33,11 +40,25 @@ jobs:
echo '${{ secrets.KEYSTORE }}' | base64 -d > keystore.jks
fi
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Move artifact to assets
run: |
cd ./github-pages
tar xvf artifact.tar && rm artifact.tar
cd ../
mkdir ./app/src/main/assets
mv ./github-pages ./app/src/main/assets/XtMapper-docs
- name: Build with Gradle
run: ./gradlew assembleRelease

- name: release
uses: softprops/action-gh-release@v1
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
app/build/outputs/apk/release/*.apk

0 comments on commit bbcfde5

Please sign in to comment.