Skip to content

Commit 4e2b3c5

Browse files
authored
for now I will manually publish the packages for debian
1 parent a8051ad commit 4e2b3c5

File tree

2 files changed

+104
-104
lines changed

2 files changed

+104
-104
lines changed

.github/workflows/on-push.yml

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -87,60 +87,60 @@ jobs:
8787
sudo echo "3.0 (native)" > debian/source/format
8888
dpkg-buildpackage -us -uc
8989
90-
build-linux-packages-for-ppa:
91-
needs: test-enviroment-variabiles
92-
runs-on: ubuntu-latest
93-
steps:
94-
- uses: actions/checkout@v2
95-
- name: Install dependencies
96-
run: |
97-
sudo add-apt-repository ppa:jyrki-pulliainen/dh-virtualenv
98-
sudo apt-get update
99-
sudo apt-get install build-essential debhelper devscripts equivs dh-virtualenv python3.8 gnupg gnupg2
100-
101-
- uses: oprypin/find-latest-tag@v1
102-
with:
103-
repository: createstructure/createstructure
104-
releases-only: true
105-
id : latest
106-
107-
- name: Set envirorment varible(s)
108-
run: |
109-
echo "::set-output name=PUSH_PATH::$(curl -sL https://api.github.com/repos/createstructure/createstructure/releases/latest | jq -r '.upload_url')"
110-
echo "::set-output name=VERSION_TAG::$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')"
111-
echo "::set-output name=TAR_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').orig.tar.gz"
112-
echo "::set-output name=DEB_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_amd64.deb"
113-
echo "::set-output name=CHANGES_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_source.changes"
114-
echo "::set-output name=NUPKG_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
115-
echo "::set-output name=NUPKG_FILE_PATH::./choco/createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
116-
id: envirorment-variables
117-
118-
- name: gpg import
119-
run: |
120-
#echo "${{ secrets.GPG_KEY }}" > key.txt
121-
#LC_ALL=C tr -cd 0-9a-fA-F < key.txt | xxd -r -p > key.asc
122-
#gpg --batch --passphrase ${{ secrets.GPG_PWS }} --import key.asc
123-
#sudo echo "export GPGKEY=${{ secrets.GPG_KEY }}" >> ~/.bashrc
124-
echo "${{ secrets.GPG_PUBKEY }}" > pubkey.txt
125-
echo "${{ secrets.GPG_SECKEY }}" > seckey.txt
126-
LC_ALL=C tr -cd 0-9a-fA-F < pubkey.txt | xxd -r -p > pubkey.asc
127-
LC_ALL=C tr -cd 0-9a-fA-F < seckey.txt | xxd -r -p > seckey.asc
128-
gpg --batch --import pubkey.asc
129-
gpg --batch --passphrase ${{ secrets.GPG_PWS }} --import seckey.asc
130-
gpg --list-secret-keys
131-
sudo echo "export GPGKEY=${{ secrets.GPG_KEY_ID }}" >> ~/.bashrc
132-
gpgconf --kill gpg-agent
133-
134-
- name: Create Debian package
135-
run: |
136-
tar -czvf ${{ steps.envirorment-variables.outputs.TAR_FILE }} debian/
137-
cd ./debian/
138-
sudo debuild -S -sa -k${{ secrets.GPG_IDENTIFICATOR }} -p"gpg --batch --passphrase ${{ secrets.GPG_PWS }} --pinentry-mode loopback"
90+
# build-linux-packages-for-ppa:
91+
# needs: test-enviroment-variabiles
92+
# runs-on: ubuntu-latest
93+
# steps:
94+
# - uses: actions/checkout@v2
95+
# - name: Install dependencies
96+
# run: |
97+
# sudo add-apt-repository ppa:jyrki-pulliainen/dh-virtualenv
98+
# sudo apt-get update
99+
# sudo apt-get install build-essential debhelper devscripts equivs dh-virtualenv python3.8 gnupg gnupg2
100+
101+
# - uses: oprypin/find-latest-tag@v1
102+
# with:
103+
# repository: createstructure/createstructure
104+
# releases-only: true
105+
# id : latest
106+
107+
# - name: Set envirorment varible(s)
108+
# run: |
109+
# echo "::set-output name=PUSH_PATH::$(curl -sL https://api.github.com/repos/createstructure/createstructure/releases/latest | jq -r '.upload_url')"
110+
# echo "::set-output name=VERSION_TAG::$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')"
111+
# echo "::set-output name=TAR_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').orig.tar.gz"
112+
# echo "::set-output name=DEB_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_amd64.deb"
113+
# echo "::set-output name=CHANGES_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_source.changes"
114+
# echo "::set-output name=NUPKG_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
115+
# echo "::set-output name=NUPKG_FILE_PATH::./choco/createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
116+
# id: envirorment-variables
117+
118+
# - name: gpg import
119+
# run: |
120+
# #echo "${{ secrets.GPG_KEY }}" > key.txt
121+
# #LC_ALL=C tr -cd 0-9a-fA-F < key.txt | xxd -r -p > key.asc
122+
# #gpg --batch --passphrase ${{ secrets.GPG_PWS }} --import key.asc
123+
# #sudo echo "export GPGKEY=${{ secrets.GPG_KEY }}" >> ~/.bashrc
124+
# echo "${{ secrets.GPG_PUBKEY }}" > pubkey.txt
125+
# echo "${{ secrets.GPG_SECKEY }}" > seckey.txt
126+
# LC_ALL=C tr -cd 0-9a-fA-F < pubkey.txt | xxd -r -p > pubkey.asc
127+
# LC_ALL=C tr -cd 0-9a-fA-F < seckey.txt | xxd -r -p > seckey.asc
128+
# gpg --batch --import pubkey.asc
129+
# gpg --batch --passphrase ${{ secrets.GPG_PWS }} --import seckey.asc
130+
# gpg --list-secret-keys
131+
# sudo echo "export GPGKEY=${{ secrets.GPG_KEY_ID }}" >> ~/.bashrc
132+
# gpgconf --kill gpg-agent
133+
134+
# - name: Create Debian package
135+
# run: |
136+
# tar -czvf ${{ steps.envirorment-variables.outputs.TAR_FILE }} debian/
137+
# cd ./debian/
138+
# sudo debuild -S -sa -k${{ secrets.GPG_IDENTIFICATOR }} -p"gpg --batch --passphrase ${{ secrets.GPG_PWS }} --pinentry-mode loopback"
139139

140-
- name: Checks files
141-
run: |
142-
sudo apt install tree
143-
tree
140+
# - name: Checks files
141+
# run: |
142+
# sudo apt install tree
143+
# tree
144144

145145
test-choco:
146146
needs: test-enviroment-variabiles

.github/workflows/on-release.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -122,59 +122,59 @@ jobs:
122122
asset_name: ${{ steps.envirorment-variables.outputs.DEB_FILE }}
123123
asset_content_type: application/zip
124124

125-
build-linux-packages-for-ppa:
126-
needs: create-and-update-deb
127-
runs-on: ubuntu-latest
128-
steps:
129-
- uses: actions/checkout@v2
130-
- name: Install dependencies
131-
run: |
132-
sudo add-apt-repository ppa:jyrki-pulliainen/dh-virtualenv
133-
sudo apt-get update
134-
sudo apt-get install build-essential debhelper devscripts equivs dh-virtualenv python3.8 gnupg gnupg2
135-
136-
- uses: oprypin/find-latest-tag@v1
137-
with:
138-
repository: createstructure/createstructure
139-
releases-only: true
140-
id : latest
141-
142-
- name: Set envirorment varible(s)
143-
run: |
144-
echo "::set-output name=PUSH_PATH::$(curl -sL https://api.github.com/repos/createstructure/createstructure/releases/latest | jq -r '.upload_url')"
145-
echo "::set-output name=VERSION_TAG::$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')"
146-
echo "::set-output name=TAR_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').orig.tar.gz"
147-
echo "::set-output name=DEB_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_amd64.deb"
148-
echo "::set-output name=CHANGES_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_source.changes"
149-
echo "::set-output name=NUPKG_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
150-
echo "::set-output name=NUPKG_FILE_PATH::./choco/createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
151-
id: envirorment-variables
152-
153-
- name: gpg import
154-
run: |
155-
echo "${{ secrets.GPG_KEY }}" > key.txt
156-
LC_ALL=C tr -cd 0-9a-fA-F < key.txt | xxd -r -p > key.asc
157-
gpg --batch --passphrase ${{ secrets.GPG_PWS }} --import key.asc
158-
159-
- name: Create Debian package
160-
run: |
161-
tar -czvf ${{ steps.envirorment-variables.outputs.TAR_FILE }} debian/
162-
cd ./debian/
163-
sudo debuild -S -sa -k${{ secrets.GPG_IDENTIFICATOR }} -p"gpg --batch --passphrase ${{ secrets.GPG_PWS }} --pinentry-mode loopback"
125+
# build-linux-packages-for-ppa:
126+
# needs: create-and-update-deb
127+
# runs-on: ubuntu-latest
128+
# steps:
129+
# - uses: actions/checkout@v2
130+
# - name: Install dependencies
131+
# run: |
132+
# sudo add-apt-repository ppa:jyrki-pulliainen/dh-virtualenv
133+
# sudo apt-get update
134+
# sudo apt-get install build-essential debhelper devscripts equivs dh-virtualenv python3.8 gnupg gnupg2
135+
136+
# - uses: oprypin/find-latest-tag@v1
137+
# with:
138+
# repository: createstructure/createstructure
139+
# releases-only: true
140+
# id : latest
141+
142+
# - name: Set envirorment varible(s)
143+
# run: |
144+
# echo "::set-output name=PUSH_PATH::$(curl -sL https://api.github.com/repos/createstructure/createstructure/releases/latest | jq -r '.upload_url')"
145+
# echo "::set-output name=VERSION_TAG::$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')"
146+
# echo "::set-output name=TAR_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').orig.tar.gz"
147+
# echo "::set-output name=DEB_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_amd64.deb"
148+
# echo "::set-output name=CHANGES_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//')_source.changes"
149+
# echo "::set-output name=NUPKG_FILE::createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
150+
# echo "::set-output name=NUPKG_FILE_PATH::./choco/createstructure_$(echo ${{ steps.latest.outputs.tag }} | sed 's/v//').nupkg"
151+
# id: envirorment-variables
152+
153+
# - name: gpg import
154+
# run: |
155+
# echo "${{ secrets.GPG_KEY }}" > key.txt
156+
# LC_ALL=C tr -cd 0-9a-fA-F < key.txt | xxd -r -p > key.asc
157+
# gpg --batch --passphrase ${{ secrets.GPG_PWS }} --import key.asc
158+
159+
# - name: Create Debian package
160+
# run: |
161+
# tar -czvf ${{ steps.envirorment-variables.outputs.TAR_FILE }} debian/
162+
# cd ./debian/
163+
# sudo debuild -S -sa -k${{ secrets.GPG_IDENTIFICATOR }} -p"gpg --batch --passphrase ${{ secrets.GPG_PWS }} --pinentry-mode loopback"
164164

165-
- name: dput
166-
run: |
167-
dput ppa:castellanidavide/createstructure ${{ steps.envirorment-variables.outputs.CHANGES_FILE }}
165+
# - name: dput
166+
# run: |
167+
# dput ppa:castellanidavide/createstructure ${{ steps.envirorment-variables.outputs.CHANGES_FILE }}
168168

169-
- name: Upload .tar.xz
170-
uses: actions/upload-release-asset@v1
171-
env:
172-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173-
with:
174-
upload_url: ${{ steps.envirorment-variables.outputs.PUSH_PATH }}
175-
asset_path: ${{ steps.envirorment-variables.outputs.TAR_FILE }}
176-
asset_name: ${{ steps.envirorment-variables.outputs.TAR_FILE }}
177-
asset_content_type: application/zip
169+
# - name: Upload .tar.xz
170+
# uses: actions/upload-release-asset@v1
171+
# env:
172+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173+
# with:
174+
# upload_url: ${{ steps.envirorment-variables.outputs.PUSH_PATH }}
175+
# asset_path: ${{ steps.envirorment-variables.outputs.TAR_FILE }}
176+
# asset_name: ${{ steps.envirorment-variables.outputs.TAR_FILE }}
177+
# asset_content_type: application/zip
178178

179179
test-choco:
180180
needs: pypi-install-test

0 commit comments

Comments
 (0)