mirror of
https://github.com/oooo-ps/i2pdbrowser.git
synced 2026-04-01 22:25:27 +00:00
[gha] publish packages on commit
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
5c73ec5eb1
commit
ef471b8204
1 changed files with 91 additions and 0 deletions
91
.github/workflows/commit.yml
vendored
Normal file
91
.github/workflows/commit.yml
vendored
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
name: Pre-release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pack-nix:
|
||||||
|
name: Unix
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Commit Hash
|
||||||
|
id: commit
|
||||||
|
uses: prompt/actions-commit-hash@v3.0.0
|
||||||
|
|
||||||
|
- name: Packing Linux
|
||||||
|
run: |
|
||||||
|
cd linux
|
||||||
|
tar -czf ../I2PdBrowserPortable_${{ steps.commit.outputs.short }}-linux.tar.gz *
|
||||||
|
|
||||||
|
- name: Packing MacOS
|
||||||
|
run: |
|
||||||
|
cd macos
|
||||||
|
tar -czf ../I2PdBrowserPortable_${{ steps.commit.outputs.short }}-macos.tar.gz *
|
||||||
|
|
||||||
|
- name: Upload Linux archive
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: i2pdbrowser-${{ steps.commit.outputs.short }}-linux
|
||||||
|
path: I2PdBrowserPortable_*-linux.tar.gz
|
||||||
|
|
||||||
|
- name: Upload MacOS archive
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: i2pdbrowser-${{ steps.commit.outputs.short }}-macos
|
||||||
|
path: I2PdBrowserPortable_*-macos.tar.gz
|
||||||
|
|
||||||
|
pack-win:
|
||||||
|
name: Windows
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Commit Hash
|
||||||
|
id: commit
|
||||||
|
uses: prompt/actions-commit-hash@v3.0.0
|
||||||
|
|
||||||
|
- name: Packaging Windows
|
||||||
|
run: |
|
||||||
|
cd windows
|
||||||
|
7z.exe a -tzip -mx=6 -- ..\I2PdBrowserPortable_${{ steps.commit.outputs.short }}-windows.zip *
|
||||||
|
|
||||||
|
- name: Upload Windows archive
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: i2pdbrowser-${{ steps.commit.outputs.short }}-windows
|
||||||
|
path: I2PdBrowserPortable_*-windows.zip
|
||||||
|
|
||||||
|
pre-release:
|
||||||
|
name: Publish pre-release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- pack-nix
|
||||||
|
- pack-win
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Commit Hash
|
||||||
|
id: commit
|
||||||
|
uses: prompt/actions-commit-hash@v3.0.0
|
||||||
|
|
||||||
|
- name: Downloading artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
pattern: i2pdbrowser-${{ steps.commit.outputs.short }}-*
|
||||||
|
|
||||||
|
- name: Creating pre-release
|
||||||
|
uses: marvinpinto/action-automatic-releases@latest
|
||||||
|
with:
|
||||||
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
automatic_release_tag: "latest"
|
||||||
|
prerelease: true
|
||||||
|
title: "Latest packages"
|
||||||
|
files: |
|
||||||
|
I2PdBrowserPortable_${{ steps.commit.outputs.short }}-*
|
||||||
Loading…
Add table
Add a link
Reference in a new issue