Test #88
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: Release v1 | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Zip Repository | |
run: zip -r apk-autorelease.zip . -x .git* .github/workflows/* | |
- name: Hapus Rilis Lama | |
uses: dev-drprasad/[email protected] | |
with: | |
keep_latest: 0 # Hapus semua rilis sebelumnya | |
delete_tags: true # Hapus tag yang terkait dengan rilis | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Buat Rilis Baru | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: v1 | |
name: v1 | |
files: ./apk-autorelease.zip | |
draft: false | |
prerelease: false | |
generate_release_notes: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |