-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
161 additions
and
125 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,80 @@ | ||
name: Create Linux release | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
env: | ||
RELEASE_VERSION: ${GITHUB_REF#refs/*/} | ||
|
||
jobs: | ||
make: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-latest] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: 'Install Linux dependencies' | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y build-essential squashfs-tools curl gcc make bison | ||
- name: 'Install MacOs dependencies' | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew install squashfs | ||
- uses: actions/checkout@v2 | ||
- name: 'Set up Ruby' | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0.3' | ||
- name: Set env | ||
run: | | ||
export LINUX_BIN_NAME=uffizzi-${{ env.RELEASE_VERSION }}-linux-x86_64 | ||
export DARWIN_BIN_NAME=uffizzi-${{ env.RELEASE_VERSION }}-darwin-x86_64 | ||
- name: 'Create Linux Bin' | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
wget https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc | ||
chmod +x ./rubyc | ||
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=LINUX_BIN_NAME | ||
- name: 'Create Darwin Bin' | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc | ||
chmod +x ./rubyc | ||
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=DARWIN_BIN_NAME | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: LINUX_BIN_NAME | ||
path: LINUX_BIN_NAME | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: DARWIN_BIN_NAME | ||
path: DARWIN_BIN_NAME | ||
create_release: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- make | ||
steps: | ||
- name: Download Linux Bin | ||
uses: actions/download-artifact@master | ||
with: | ||
name: LINUX_BIN_NAME | ||
- name: Download Macos Bin | ||
uses: actions/download-artifact@master | ||
with: | ||
name: DARWIN_BIN_NAME | ||
- name: Generate release notes | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_name: ${{ env.RELEASE_VERSION }} | ||
name: ${{ env.RELEASE_VERSION }} | ||
files: | | ||
${{ github.workspace }}/LINUX_BIN_NAME | ||
${{ github.workspace }}/DARWIN_BIN_NAME | ||
generate_release_notes: true |
8 changes: 5 additions & 3 deletions
8
.github/workflows/release.yml → .github/workflows/image-release.yml
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
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
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 |
---|---|---|
|
@@ -7,5 +7,4 @@ | |
/spec/reports/ | ||
/tmp/ | ||
.byebug_history | ||
./uffizzi-* | ||
packaging/traveling-ruby-* |
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
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Uffizzi | ||
VERSION = '2.0.2' | ||
VERSION = '2.0.4' | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 11 additions & 2 deletions
13
test/fixtures/files/uffizzi/uffizzi_projects_set_default_success.json
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
{ | ||
"project": | ||
{ | ||
"account_id": 1, | ||
"slug": "project_slug_1" | ||
"name": "default", | ||
"slug": "project_slug_1", | ||
"description": "", | ||
"deployments": [], | ||
"secrets": [], | ||
"account": { | ||
"id": 1, | ||
"kind": "organizational", | ||
"name": "uffizzi", | ||
"state": "trial" | ||
} | ||
} | ||
} |
9 changes: 8 additions & 1 deletion
9
test/fixtures/files/uffizzi/uffizzi_projects_success_one_project.json
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"projects": [ | ||
{ | ||
"slug": "project_slug_1" | ||
"slug": "project_slug_1", | ||
"account_id": 1, | ||
"account": { | ||
"id": 1, | ||
"kind": "organizational", | ||
"name": "uffizzi", | ||
"state": "trial" | ||
} | ||
} | ||
] | ||
} |
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
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
File renamed without changes.
Oops, something went wrong.