mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
fix(ci): utilize latest standard for Snapcraft login
[skip ci]
This commit is contained in:
@@ -23,10 +23,6 @@ inputs:
|
||||
description: 'Google Play Store API Key'
|
||||
required: false
|
||||
default: ''
|
||||
snapcraft-token:
|
||||
description: 'Snapcraft API Key'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -48,12 +44,6 @@ runs:
|
||||
with:
|
||||
bundler-cache: true
|
||||
|
||||
- name: Install Snapcraft
|
||||
if: ${{ inputs.channel == 'snapcraft' }}
|
||||
uses: samuelmeuli/action-snapcraft@v1
|
||||
with:
|
||||
snapcraft_token: ${{ inputs.snapcraft-token }}
|
||||
|
||||
- name: Install XCode
|
||||
if: ${{ inputs.channel == 'app-store' }}
|
||||
uses: maxim-lobanov/setup-xcode@v1
|
||||
|
||||
10
.github/workflows/publish_linux.yml
vendored
10
.github/workflows/publish_linux.yml
vendored
@@ -14,7 +14,7 @@ on:
|
||||
type: string
|
||||
|
||||
secrets:
|
||||
SNAPCRAFT_TOKEN:
|
||||
SNAPCRAFT_STORE_CREDENTIALS:
|
||||
required: true
|
||||
S3_ACCESS_KEY:
|
||||
required: true
|
||||
@@ -36,7 +36,6 @@ jobs:
|
||||
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_deployment@master
|
||||
with:
|
||||
channel: snapcraft
|
||||
snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||
|
||||
- name: Download Snap
|
||||
uses: actions/download-artifact@v3
|
||||
@@ -45,7 +44,12 @@ jobs:
|
||||
path: ${{ github.workspace }}/output
|
||||
|
||||
- name: Deploy to Snapcraft
|
||||
run: snapcraft upload --release=${{ inputs.flavor }} ${{ github.workspace }}/output/lunasea-linux-amd64.snap
|
||||
uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
||||
with:
|
||||
release: ${{ inputs.flavor }}
|
||||
snap: ${{ github.workspace }}/output/lunasea-linux-amd64.snap
|
||||
|
||||
s3:
|
||||
name: S3
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -160,7 +160,7 @@ jobs:
|
||||
build-number: ${{ needs.prepare.outputs.build-number }}
|
||||
build-title: ${{ needs.prepare.outputs.build-title }}
|
||||
secrets:
|
||||
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
||||
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
||||
S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
||||
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||
|
||||
Reference in New Issue
Block a user