Test #84
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* | |
- name: Buat atau Update Tag dan Rilis | |
id: create_release | |
uses: actions/create-release@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag_name: v1 | |
release_name: Release v1 | |
draft: false | |
prerelease: false | |
replace: true # Ganti tag yang sudah ada | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./apk-autorelease.zip | |
asset_name: apk-autorelease-v1.zip | |
asset_content_type: application/zip |