Skip to content

Test

Test #81

Workflow file for this run

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: Check Directory
run: ls -la
- 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: "v${{github.run_number}}"
release_name: ${{env.PROJECT_NAME}}
draft: false
prerelease: false
- uses: actions/checkout@v4
# - 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
#
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.release-id.outputs.upload_url }}
asset_name: v1
tag: ${{ github.ref }}
overwrite: true
body: "This is my release text"