You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.2 KiB
55 lines
2.2 KiB
--- |
|
name: Update Links |
|
|
|
on: |
|
release: |
|
types: [published] |
|
|
|
jobs: |
|
update-links: |
|
name: Update Links |
|
runs-on: ubuntu-20.04 |
|
steps: |
|
- name: Login to Azure - Prod Subscription |
|
uses: Azure/login@77f1b2e3fb80c0e8645114159d17008b8a2e475a |
|
with: |
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }} |
|
|
|
- name: Retrieve secrets |
|
id: retrieve-secrets |
|
uses: Azure/get-keyvault-secrets@80ccd3fafe5662407cc2e55f202ee34bfff8c403 |
|
with: |
|
keyvault: "bitwarden-prod-kv" |
|
secrets: "rebrandly-apikey" |
|
|
|
- name: Update Bitwarden Script PowerShell Link |
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
with: |
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
domain: "go.btwrdn.co" |
|
slashtag: "bw-ps" |
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/bitwarden.ps1" |
|
|
|
- name: Update Run Script PowerShell Link |
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
with: |
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
domain: "go.btwrdn.co" |
|
slashtag: "bw-ps-run" |
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/run.ps1" |
|
|
|
- name: Update Bitwarden Script Shell Link |
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
with: |
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
domain: "go.btwrdn.co" |
|
slashtag: "bw-sh" |
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/bitwarden.sh" |
|
|
|
- name: Update Run Script Shell Link |
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
with: |
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
domain: "go.btwrdn.co" |
|
slashtag: "bw-sh-run" |
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/run.sh"
|
|
|