forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lessley Dennington
committed
Jun 21, 2021
1 parent
b72a77a
commit 6fb6cc2
Showing
2 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "release-apt-get" | ||
on: [push] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: 'Download Repo Client' | ||
env: | ||
AZ_SUB: ${{ secrets.AZURE_SUBSCRIPTION }} | ||
run: | | ||
az storage blob download --subscription "$AZ_SUB" --account-name gitcitoolstore -c tools -n azure-repoapi-client_2.0.1_amd64.deb -f repoclient.deb --auth-mode login | ||
- name: "Install Repo Client" | ||
env: | ||
AZURE_AAD_ID: ${{ secrets.AZURE_AAD_ID }} | ||
AAD_CLIENT_SECRET: ${{ secrets.AAD_CLIENT_SECRET }} | ||
run: | | ||
sudo apt-get install python3-adal --yes | ||
sudo dpkg -i repoclient.deb | ||
python .github/configure_repoclient.py | ||
rm repoclient.deb | ||
- name: "Publish to apt feed" | ||
env: | ||
RELEASE: ${{ github.event.inputs.release }} | ||
run: | | ||
pip install requests | ||
python .github/fetch_release.py | ||
wget "$(cat asset_url.txt)" | ||
for id in ${{ secrets.BIONIC_REPO_ID }} ${{ secrets.HIRSUTE_REPO_ID }} | ||
do | ||
repoclient -v v3 -c config.json package add --check --wait 300 "$(cat asset_name.txt)" -r $id | ||
done |