Skip to content

jishnupn04 building the binary using nuitka πŸš€ #17

jishnupn04 building the binary using nuitka πŸš€

jishnupn04 building the binary using nuitka πŸš€ #17

name: Binary Build And Release
run-name: ${{ github.actor }} building the binary using nuitka πŸš€
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
Binary-Build:
name: Build binary using nuitka
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- name: Build and run Docker image
run: |
docker build -t one_installer:latest .
docker run -d --name ansika one_installer:latest
- name: Copy file from Docker container
run: |
docker cp ansika:/code/executor.bin /tmp/executor.bin
- name: Store artifact
uses: actions/upload-artifact@v2
with:
name: executor.bin
path: /tmp/executor.bin
Binary-Release:
needs: Binary-Build
runs-on: ubuntu-latest
steps:
- name: Download artifact from Build job
uses: actions/download-artifact@v2
with:
name: executor.bin
path: /tmp
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/executor.bin
asset_name: executor.bin
asset_content_type: application/octet-stream