Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
427fc4aa
You need to sign in or sign up before continuing.
Commit
427fc4aa
authored
Sep 19, 2020
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cirrus: update token and use CIRRUS_RELEASE
parent
25ecf42f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
.cirrus.yml
+15
-2
No files found.
.cirrus.yml
View file @
427fc4aa
...
@@ -28,7 +28,7 @@ release_task:
...
@@ -28,7 +28,7 @@ release_task:
name
:
"
Release
/
FreeBSD"
name
:
"
Release
/
FreeBSD"
only_if
:
$CIRRUS_TAG != ''
only_if
:
$CIRRUS_TAG != ''
env
:
env
:
GITHUB_TOKEN
:
ENCRYPTED[
e637a1887c028ea4e44867715a8a4b7c5e27568559a15c45a3e33739b0d97fc050394c728a44e9bfe7c246179810cad7
]
GITHUB_TOKEN
:
ENCRYPTED[
2b573a2d28a03523ac6fb5b3c2f513a41c0a98db81e40e50e1d103b171f85c57e58ae38d957499dbf7fd7635cfcfd7be
]
PYTHON
:
python3.8
PYTHON
:
python3.8
PYTHON27
:
python2.7
PYTHON27
:
python2.7
PYTHON35
:
python3.5
PYTHON35
:
python3.5
...
@@ -48,11 +48,24 @@ release_task:
...
@@ -48,11 +48,24 @@ release_task:
-
python3.8 -m ensurepip
-
python3.8 -m ensurepip
build_script
:
bash ./make-nix-release.sh
build_script
:
bash ./make-nix-release.sh
upload_script
:
|
upload_script
:
|
#!/usr/bin/env bash
if [[ "$CIRRUS_RELEASE" == "" ]]; then
echo "Not a release. No need to deploy!"
exit 0
fi
if [[ "$GITHUB_TOKEN" == "" ]]; then
echo "Please provide GitHub access token via GITHUB_TOKEN environment variable!"
exit 1
fi
for fpath in releases/*
for fpath in releases/*
do
do
echo "Uploading $fpath..."
echo "Uploading $fpath..."
name=$(basename "$fpath")
name=$(basename "$fpath")
url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_TAG/assets?name=$name"
url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_RELEASE/assets?name=$name"
echo "Uploading to $url_to_upload"
curl -X POST \
curl -X POST \
--data-binary @$fpath \
--data-binary @$fpath \
--header "Authorization: token $GITHUB_TOKEN" \
--header "Authorization: token $GITHUB_TOKEN" \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment