Skip to content

Commit

Permalink
Merge #3201 Put Release file in stable/nightly folders of APT repo
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 18, 2020
2 parents 984c39e + 6a86763 commit 0ac53e1
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ jobs:
SOURCE_DIR: _build/deb/apt-repo
DEST_DIR: deb/dists/nightly/main/binary-all
if: ${{ env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY }}
- name: Push Release file to S3
# Send deb file to https://ksp-ckan.s3-us-west-2.amazonaws.com/
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks
env:
AWS_S3_BUCKET: ksp-ckan
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
SOURCE_DIR: _build/deb/apt-repo-rel
DEST_DIR: deb/dists/nightly
if: ${{ env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY }}

- name: Send Discord Notification
env:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ jobs:
SOURCE_DIR: _build/deb/apt-repo
DEST_DIR: deb/dists/stable/main/binary-all
if: ${{ env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY }}
- name: Push Release file to S3
# Send deb file to https://ksp-ckan.s3-us-west-2.amazonaws.com/
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks
env:
AWS_S3_BUCKET: ksp-ckan
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
SOURCE_DIR: _build/deb/apt-repo-rel
DEST_DIR: deb/dists/stable
if: ${{ env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY }}

- name: Send Discord Notification
env:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file.
### Features

- [Multiple] Allow upgrading manually installed modules (#3190 by: HebaruSan; reviewed: DasSkelett)
- [Build] Generate APT repo for releases and under dev builds (#3197 by: HebaruSan; reviewed: DasSkelett)
- [Build] Generate APT repo for releases and under dev builds (#3197, #3201 by: HebaruSan; reviewed: DasSkelett)

### Bugfixes

Expand Down
10 changes: 9 additions & 1 deletion debian/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ CONSOLEUIDESKTOPSRC:=ckan-consoleui.desktop
CONSOLEUIDESKTOPDEST:=$(DESTDIR)/usr/share/applications/ckan-consoleui.desktop
VERSION:=$(shell egrep '^\s*\#\#\s+v.*$$' $(CHANGELOGSRC) | head -1 | sed -e 's/^\s*\#\#\s\+v//' )
DEB:=../_build/deb/ckan_$(VERSION)_all.deb

APTREPO:=../_build/deb/apt-repo
REPODEB:=$(APTREPO)/ckan_$(VERSION)_all.deb
PACKAGES:=$(APTREPO)/Packages.gz
RELEASESRC:=Release.in
RELEASEDEST:=$(APTREPO)/Release

repo: $(REPODEB) $(PACKAGES) $(RELEASEDEST)
APTREPOREL:=../_build/deb/apt-repo-rel
RELRELEASEDEST:=$(APTREPOREL)/Release

repo: $(REPODEB) $(PACKAGES) $(RELEASEDEST) $(RELRELEASEDEST)

$(REPODEB): $(DEB)
umask 0022 && mkdir -p $(shell dirname $@)
Expand All @@ -43,6 +47,10 @@ $(RELEASEDEST): $(RELEASESRC)
umask 0022 && mkdir -p $(shell dirname $@)
umask 0022 && sed -e 's/@VERSION@/$(VERSION)/' $< > $@

$(RELRELEASEDEST): $(RELEASESRC)
umask 0022 && mkdir -p $(shell dirname $@)
umask 0022 && sed -e 's/@VERSION@/$(VERSION)/' $< > $@

$(DEB): $(EXEDEST) $(SCRIPTDEST) $(CONTROLDEST) $(CHANGELOGDEST) $(DEBCHANGEDEST) $(MANDEST) $(ICONDEST) $(COPYRIGHTDEST) $(DESKTOPDEST) $(CONSOLEUIDESKTOPDEST)
umask 0022 && mkdir -p $(shell dirname $@)
fakeroot dpkg-deb --build $(DESTDIR)/ $@
Expand Down

0 comments on commit 0ac53e1

Please sign in to comment.