Skip to content

Commit

Permalink
Build docs separately
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 16, 2024
1 parent f80dc2b commit c09b7c3
Showing 1 changed file with 38 additions and 16 deletions.
54 changes: 38 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ on:
# for debug purposes only
branches: [ci-migration]

# env:
# RELEASE_BUILD: ${{ contains(github.ref, 'refs/tags/v') && 'true' || 'false' }}
# SNAPSHOT_BUILD: ${{ github.ref == 'refs/heads/master' && 'true' || 'false' }}
# RC_BUILD: ${{ github.ref_type == 'tag' && endsWith(github.ref, '-rc') && 'true' || 'false' }}
# BUILD_VERSION:

env:
GITHUB_OWNER: mysteriumnetwork
GITHUB_REPO: node
Expand All @@ -25,8 +19,8 @@ env:
jobs:
build-packages:
# if: |
# ${{ github.event.workflow_run.conclusion == 'success' }} ||
# ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
# ${{ github.event.workflow_run.conclusion == 'success' }} ||
# ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
environment: production

Expand All @@ -45,7 +39,38 @@ jobs:
- PackageWindowsAmd64
- PackageAndroid
- PackageAndroidProvider
- PackageDockerSwaggerRedoc

steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Generate Env
run: go run mage.go -v GenerateEnvFile

- name: Setup FPM
run: |
sudo apt-get install ruby-dev build-essential
sudo gem i fpm -f
- name: Build package
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
source build/env.sh
# Following line ensures that s3 bucket name won't overlap with the old CI's target
export BUILD_NUMBER=$BUILD_NUMBER"-ghactions"
go run mage.go -v ${{ matrix.platform }}
build-swagger:
# if: |
# ${{ github.event.workflow_run.conclusion == 'success' }} ||
# ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
environment: production
needs: [build-packages]

steps:
- uses: actions/checkout@v4
Expand All @@ -63,15 +88,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup FPM
run: |
sudo apt-get install ruby-dev build-essential
sudo gem i fpm -f
- name: Build package
- name: Build docker
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
source build/env.sh
go run mage.go -v ${{ matrix.platform }}
# Following line ensures that s3 bucket name won't overlap with the old CI's target
export BUILD_NUMBER=$BUILD_NUMBER"-ghactions"
go run mage.go -v PackageDockerSwaggerRedoc

0 comments on commit c09b7c3

Please sign in to comment.