-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Integrate GitHub actions (#14)
- Loading branch information
1 parent
da46015
commit 3cb309d
Showing
4 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build encrypt0r | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '*.*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install npm dependencies | ||
run: npm install | ||
- name: Install windows dependencies | ||
run: | | ||
sudo dpkg --add-architecture i386 | ||
sudo apt update | ||
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - | ||
sudo apt install software-properties-common | ||
sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main' | ||
wget -qO- https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | sudo apt-key add - | ||
sudo sh -c 'echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./" > /etc/apt/sources.list.d/obs.list' | ||
sudo apt update | ||
sudo apt-get install -y --install-recommends winehq-devel | ||
sudo apt-get install -y fakeroot | ||
- name: Create build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Release encrypt0r | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install npm dependencies | ||
run: npm install | ||
- name: Install windows dependencies | ||
run: | | ||
sudo dpkg --add-architecture i386 | ||
sudo apt update | ||
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - | ||
sudo apt install software-properties-common | ||
sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main' | ||
wget -qO- https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | sudo apt-key add - | ||
sudo sh -c 'echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./" > /etc/apt/sources.list.d/obs.list' | ||
sudo apt update | ||
sudo apt-get install -y --install-recommends winehq-devel | ||
sudo apt-get install -y fakeroot | ||
- name: Create release files | ||
run: npm run release | ||
- name: Upload release files | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: release-builds/*.zip | ||
tag: ${{ github.ref }} | ||
file_glob: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters