Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
QiubyZ committed Sep 9, 2024
1 parent 332e248 commit ab96dbb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Action

on:
push:
branches: ["main"]

jobs:
build:
env:
TAG: Release
PROJECT_NAME: ${{github.event.repository.name}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILE_OUTPUT: ./dist

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Upload Ke dalam Artifact
uses: actions/[email protected]
with:
name: ${{env.PROJECT_NAME}}
path: ${{env.FILE_OUTPUT}}

- name: Pembuatan Membuat Tag Rilis
id: release-id
uses: actions/create-release@v1
with:
tag_name: "${{env.TAG}}-${{github.run_number}}"
release_name: ${{env.PROJECT_NAME}}
draft: false
prerelease: false

- name: Upload Release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release-id.outputs.upload_url }}
asset_path: ${{env.FILE_OUTPUT}}
asset_name: ${{env.PROJECT_NAME}}-${{github.run_number}}.zip
asset-content-type: application/zip

3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Android CI


on:
push:
branches: [main]
Expand All @@ -11,7 +10,7 @@ inputs:
description: "Body Release"

runs:
uses: composite
using: composite
build:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit ab96dbb

Please sign in to comment.