Skip to content

Commit

Permalink
Merge pull request #134 from muun/update-github-actions-to-fix-deprec…
Browse files Browse the repository at this point in the history
…ation-warnings

Udpate github actions to fix deprecation warnings
  • Loading branch information
acrespo authored Nov 6, 2023
2 parents a98e5f2 + 9e9e9be commit 65f61a5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,50 @@ on:
push:
tags:
- v*

# Note: we'll reference actions by commits for 'reproducibility sakes' (we don't
# want an action author to change the tag reference and break our reproducibility).

jobs:
build-release:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@154c24e1f33dbb5865a021c99f1318cfebf27b32
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # Matches tag v3.0.0
# https://github.com/docker/setup-buildx-action/releases/tag/v3.0.0

with:
buildkitd-flags: --debug

- name: Checkout
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Matches tag v4.1.1
# https://github.com/actions/checkout/releases/tag/v4.1.1

- name: Create output dir
run: |
mkdir -p apk
- name: Build
uses: docker/build-push-action@9379083e426e2e84abb80c8c091f5cdeb7d3fd7a
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # Matches tag v5.0.0
# https://github.com/docker/build-push-action/releases/tag/v5.0.0

with:
file: android/Dockerfile
context: .
outputs: apk

- name: Upload APK
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # Matches tag v3.1.3
# https://github.com/actions/upload-artifact/releases/tag/v3.1.3

with:
name: apk
path: apk/apolloui-prod-release-unsigned.apk

- name: Upload mapping
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # Matches tag v3.1.3
# https://github.com/actions/upload-artifact/releases/tag/v3.1.3

with:
name: mapping
path: apk/mapping.txt
23 changes: 17 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
name: pr
on: pull_request

# Note: we'll reference actions by commits for 'reproducibility sakes' (we don't
# want an action author to change the tag reference and break our reproducibility).

jobs:
pr:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@154c24e1f33dbb5865a021c99f1318cfebf27b32
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # Matches tag v3.0.0
# https://github.com/docker/setup-buildx-action/releases/tag/v3.0.0

with:
buildkitd-flags: --debug

- name: Checkout
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Matches tag v4.1.1
# https://github.com/actions/checkout/releases/tag/v4.1.1

# https://github.com/gradle/wrapper-validation-action/releases/tag/v1.0.5
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6
uses: gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6 # Matches tag v1.0.5
# https://github.com/gradle/wrapper-validation-action/releases/tag/v1.0.5

- name: Create output dir
run: |
mkdir -p apk
- name: Build
uses: docker/build-push-action@9379083e426e2e84abb80c8c091f5cdeb7d3fd7a
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # Matches tag v5.0.0
# https://github.com/docker/build-push-action/releases/tag/v5.0.0

with:
file: android/Dockerfile
context: .
outputs: apk

- name: Upload APK
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # Matches tag v3.1.3
# https://github.com/actions/upload-artifact/releases/tag/v3.1.3

with:
name: apk
path: apk/apolloui-prod-release-unsigned.apk

0 comments on commit 65f61a5

Please sign in to comment.