Skip to content

Commit

Permalink
Updating Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SquitchYT committed Dec 4, 2022
1 parent fb66886 commit aa285a2
Showing 1 changed file with 149 additions and 149 deletions.
298 changes: 149 additions & 149 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,173 +36,173 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
DEB_Package:
name: Creating Debian Package
needs: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
- name: Generating DEBIAN Package
run: >
sudo apt update
sudo apt install libcurl4-openssl-dev cmake git
# DEB_Package:
# name: Creating Debian Package
# needs: Linux
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Get release
# id: get_release
# uses: bruceadams/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# - name: Generating DEBIAN Package
# run: >
# sudo apt update

mkdir -p ./build/linux/debian/tess/usr/lib/tess/
# sudo apt install libcurl4-openssl-dev cmake git

mkdir -p ./build/linux/debian/tess/usr/bin
# mkdir -p ./build/linux/debian/tess/usr/lib/tess/

# mkdir -p ./build/linux/debian/tess/usr/bin

npm install

npm run build
# npm install

cp -r dist/linux-unpacked/* ./build/linux/debian/tess/usr/lib/tess/
# npm run build

# cp -r dist/linux-unpacked/* ./build/linux/debian/tess/usr/lib/tess/

cd cli

cmake . -B build
# cd cli

make -C build
# cmake . -B build

strip build/tess-cli
# make -C build

cp build/tess-cli ../build/linux/debian/tess/usr/bin/
# strip build/tess-cli

cd ../
# cp build/tess-cli ../build/linux/debian/tess/usr/bin/

sed -i "s/{{ DATE }}/$(date -R)/g"
./build/linux/debian/tess/DEBIAN/control
# cd ../

cd ./build/linux/debian/
# sed -i "s/{{ DATE }}/$(date -R)/g"
# ./build/linux/debian/tess/DEBIAN/control

sudo chmod 755 tess/DEBIAN/postinst
# cd ./build/linux/debian/

dpkg-deb --build tess
env:
VERSION: '${{ steps.get_release.outputs.tag_name }}'
- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
with:
upload_url: '${{ steps.get_release.outputs.upload_url }}'
asset_path: ./build/linux/debian/tess.deb
asset_name: 'tess_${{ steps.get_release.outputs.tag_name }}-1_x86-64.deb'
asset_content_type: application/octet-stream
Linux_Tar:
name: Creating Tar Package
needs: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
- name: Generating DEBIAN Package
run: |
sudo apt update
sudo apt install libcurl4-openssl-dev cmake git
npm install
npm run build
# sudo chmod 755 tess/DEBIAN/postinst

cd cli
cmake . -B build
make -C build
strip build/tess-cli
cp build/tess-cli ../dist/linux-unpacked
cd ../
cd dist
tar -zcv linux-unpacked/ -f tess-${VERSION}-x86_64.tar.gz
env:
VERSION: '${{ steps.get_release.outputs.tag_name }}'
- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
with:
upload_url: '${{ steps.get_release.outputs.upload_url }}'
asset_path: './dist/tess-${{ steps.get_release.outputs.tag_name }}-x86_64.tar.gz'
asset_name: 'tess-${{ steps.get_release.outputs.tag_name }}-x86_64.tar.gz'
asset_content_type: application/octet-stream
AppImage:
name: Creating AppImage
needs: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
- name: Generating AppImage
run: |
npm install && npm run build-appimage
- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
with:
upload_url: '${{ steps.get_release.outputs.upload_url }}'
asset_path: './dist/tess-${{ steps.get_release.outputs.tag_name }}.AppImage'
asset_name: 'tess_${{ steps.get_release.outputs.tag_name }}.AppImage'
asset_content_type: application/octet-stream
Pacman_Package:
name: Creating Pacman Package
needs: Linux
runs-on: ubuntu-latest
steps:
- name: Downloading Files
uses: actions/checkout@v2
- name: Update PKGBUILD
uses: 2m/[email protected]
with:
target: pkgbuild
pkgname: build/linux/archlinux/tess-git
- name: Renaming package
run: |
cd build/linux/archlinux/tess-git
mv *.pkg.tar.zst tess-git-x86_64.pkg.tar.zst
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: '${{ github.token }}'
with:
upload_url: '${{ steps.get_release.outputs.upload_url }}'
asset_path: build/linux/archlinux/tess-git/tess-git-x86_64.pkg.tar.zst
asset_name: tess-git-x86_64.pkg.tar.zst
asset_content_type: application/octet-stream
- name: Update PKGBUILD
uses: 2m/[email protected]
with:
target: pkgbuild
pkgname: build/linux/archlinux/tess-git
- name: Update AUR Package
uses: KSXGitHub/[email protected]
with:
pkgname: tess-git
pkgbuild: build/linux/archlinux/tess-git/PKGBUILD
commit_username: '${{ secrets.AUR_USERNAME }}'
commit_email: '${{ secrets.AUR_EMAIL }}'
ssh_private_key: '${{ secrets.AUR_SSH_PRIVATE_KEY }}'
commit_message: Update AUR package
# dpkg-deb --build tess
# env:
# VERSION: '${{ steps.get_release.outputs.tag_name }}'
# - name: Upload release binary
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# with:
# upload_url: '${{ steps.get_release.outputs.upload_url }}'
# asset_path: ./build/linux/debian/tess.deb
# asset_name: 'tess_${{ steps.get_release.outputs.tag_name }}-1_x86-64.deb'
# asset_content_type: application/octet-stream
# Linux_Tar:
# name: Creating Tar Package
# needs: Linux
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Get release
# id: get_release
# uses: bruceadams/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# - name: Generating DEBIAN Package
# run: |
# sudo apt update
# sudo apt install libcurl4-openssl-dev cmake git
# npm install
# npm run build

# cd cli
# cmake . -B build
# make -C build
# strip build/tess-cli
# cp build/tess-cli ../dist/linux-unpacked
# cd ../
# cd dist
# tar -zcv linux-unpacked/ -f tess-${VERSION}-x86_64.tar.gz
# env:
# VERSION: '${{ steps.get_release.outputs.tag_name }}'
# - name: Upload release binary
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# with:
# upload_url: '${{ steps.get_release.outputs.upload_url }}'
# asset_path: './dist/tess-${{ steps.get_release.outputs.tag_name }}-x86_64.tar.gz'
# asset_name: 'tess-${{ steps.get_release.outputs.tag_name }}-x86_64.tar.gz'
# asset_content_type: application/octet-stream
# AppImage:
# name: Creating AppImage
# needs: Linux
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Get release
# id: get_release
# uses: bruceadams/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# - name: Generating AppImage
# run: |
# npm install && npm run build-appimage
# - name: Upload release binary
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# with:
# upload_url: '${{ steps.get_release.outputs.upload_url }}'
# asset_path: './dist/tess-${{ steps.get_release.outputs.tag_name }}.AppImage'
# asset_name: 'tess_${{ steps.get_release.outputs.tag_name }}.AppImage'
# asset_content_type: application/octet-stream
# Pacman_Package:
# name: Creating Pacman Package
# needs: Linux
# runs-on: ubuntu-latest
# steps:
# - name: Downloading Files
# uses: actions/checkout@v2
# - name: Update PKGBUILD
# uses: 2m/[email protected]
# with:
# target: pkgbuild
# pkgname: build/linux/archlinux/tess-git
# - name: Renaming package
# run: |
# cd build/linux/archlinux/tess-git
# mv *.pkg.tar.zst tess-git-x86_64.pkg.tar.zst
# - name: Get release
# id: get_release
# uses: bruceadams/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# - name: Upload release binary
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: '${{ github.token }}'
# with:
# upload_url: '${{ steps.get_release.outputs.upload_url }}'
# asset_path: build/linux/archlinux/tess-git/tess-git-x86_64.pkg.tar.zst
# asset_name: tess-git-x86_64.pkg.tar.zst
# asset_content_type: application/octet-stream
# - name: Update PKGBUILD
# uses: 2m/[email protected]
# with:
# target: pkgbuild
# pkgname: build/linux/archlinux/tess-git
# - name: Update AUR Package
# uses: KSXGitHub/[email protected]
# with:
# pkgname: tess-git
# pkgbuild: build/linux/archlinux/tess-git/PKGBUILD
# commit_username: '${{ secrets.AUR_USERNAME }}'
# commit_email: '${{ secrets.AUR_EMAIL }}'
# ssh_private_key: '${{ secrets.AUR_SSH_PRIVATE_KEY }}'
# commit_message: Update AUR package
RPM_Package:
name: Creating RPM Package
needs: Linux
Expand Down

0 comments on commit aa285a2

Please sign in to comment.