-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 872 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 #Test Release
files: ./apk-autorelease.zip
draft: false
prerelease: false
generate_release_notes: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}