Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
Update github auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoxd committed Feb 12, 2022
1 parent 52849fa commit 88fc9cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ setup:
image: ghcr.io/armmbed/mbed-os-env:mbed-os-6-latest
stage: setup

only:
- branches
- tags

cache:
key: mbed-libraries
paths:
Expand All @@ -50,9 +54,8 @@ build:
image: ghcr.io/armmbed/mbed-os-env:mbed-os-6-latest
stage: build

only:
- branches
- tags
needs:
- job: setup

parallel:
matrix:
Expand All @@ -78,6 +81,8 @@ release:
image: ubuntu:latest
stage: release

# Requires Variable GITHUB_TOKEN to be set

needs:
- job: build
artifacts: true
Expand All @@ -89,7 +94,6 @@ release:
- dpkg -i gh-cli.deb

script:
- gh auth login --with-token < ${GITHUB_TOKEN_FILE}
- gh release create release/${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} -R ${GITHUB_REPO} --target "${CI_COMMIT_REF_SLUG}" -t "Release ${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" --generate-notes

- gh release upload release/${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} -R ${GITHUB_REPO} DXC-22-L-${CI_COMMIT_REF_NAME}-TEAM-1.bin
Expand Down

0 comments on commit 88fc9cc

Please sign in to comment.