Skip to content

Commit

Permalink
Automatically generated website offering CI binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ooxi committed Aug 27, 2021
1 parent b3639bb commit c16d147
Show file tree
Hide file tree
Showing 19 changed files with 542 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ jobs:
- name: Rebuild Windows amd64
run: npx --package [email protected] mc --no-tty windows:amd64 .mc/rebuild.sh

- name: Rebuild gerbv.github.io
run: npx --package [email protected] mc --no-tty website make -C gerbv.github.io

4 changes: 3 additions & 1 deletion .mc/package-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ fi
set -e

RELEASE_COMMIT=`"${GIT}" rev-parse HEAD`
RELEASE_COMMIT_SHORT="${RELEASE_COMMIT:0:6}"
RELEASE_DATE=`"${DATE}" --rfc-3339=date`
RELEASE_VERSION=`"${GIT}" describe`

Expand All @@ -101,11 +102,12 @@ EOT


# Create archive and auxiliary files
RELEASE_FILENAME="gerbv_${RELEASE_DATE}_${RELEASE_COMMIT:0:6}_(${RELEASE_OS}).tar.gz"
RELEASE_FILENAME="gerbv_${RELEASE_DATE}_${RELEASE_COMMIT_SHORT}_(${RELEASE_OS}).tar.gz"

"${TAR}" --directory="${TEMPORARY_DIRECTORY}" -czf "${WEBSITE_DIRECTORY}/${RELEASE_FILENAME}" '.'

echo "${RELEASE_COMMIT}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_COMMIT"
echo "${RELEASE_COMMIT_SHORT}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_COMMIT_SHORT"
echo "${RELEASE_DATE}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_DATE"
echo "${RELEASE_FILENAME}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_FILENAME"
echo "${RELEASE_VERSION}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_VERSION"
Expand Down
7 changes: 7 additions & 0 deletions .mc/website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
base: ubuntu:20.04
install:
- m4
- make
---

4 changes: 3 additions & 1 deletion .mc/windows:amd64/opt/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ fi
set -e

RELEASE_COMMIT=`"${GIT}" rev-parse HEAD`
RELEASE_COMMIT_SHORT="${RELEASE_COMMIT:0:6}"
RELEASE_DATE=`"${DATE}" --rfc-3339=date`
RELEASE_VERSION=`"${GIT}" describe`

Expand All @@ -78,11 +79,12 @@ MINGW_LIBRARY_DIRECTORY='/usr/x86_64-w64-mingw32/sys-root/mingw/bin'


# Create archive and auxiliary files
RELEASE_FILENAME="gerbv_${RELEASE_DATE}_${RELEASE_COMMIT:0:6}_(${RELEASE_OS}).zip"
RELEASE_FILENAME="gerbv_${RELEASE_DATE}_${RELEASE_COMMIT_SHORT}_(${RELEASE_OS}).zip"

"${FIND}" "${TEMPORARY_DIRECTORY}" -type f -exec "${ZIP}" --junk-paths "${WEBSITE_DIRECTORY}/${RELEASE_FILENAME}" {} \;

echo "${RELEASE_COMMIT}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_COMMIT"
echo "${RELEASE_COMMIT_SHORT}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_COMMIT_SHORT"
echo "${RELEASE_DATE}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_DATE"
echo "${RELEASE_FILENAME}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_FILENAME"
echo "${RELEASE_VERSION}" > "${WEBSITE_DIRECTORY}/${RELEASE_OS}.RELEASE_VERSION"
Expand Down
2 changes: 2 additions & 0 deletions gerbv.github.io/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!/Makefile
/index.html
15 changes: 15 additions & 0 deletions gerbv.github.io/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: all
all: clean build


.PHONY: clean
clean:
if [ -f 'index.html' ]; then \
rm 'index.html'; \
fi


.PHONY: build
build:
m4 'index.html.m4' > 'index.html'

5 changes: 5 additions & 0 deletions gerbv.github.io/assets/Fedora_icon_(2021).svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions gerbv.github.io/assets/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
bg_hr.png CC0-1.0 https://github.com/pages-themes/slate/blob/ff147bf37e3611395f37cc0cdcaee57550293235/assets/images/bg_hr.png
blacktocat.png CC0-1.0 https://github.com/pages-themes/slate/blob/ff147bf37e3611395f37cc0cdcaee57550293235/assets/images/blacktocat.png
Fedora_icon_(2021).svg [fedora-logo] https://de.wikipedia.org/wiki/Datei:Fedora_icon_(2021).svg
cof_orange_hex.png [ubuntu-logo] https://assets.ubuntu.com/v1/9fbc8a44-circle-of-friends-web.zip
gerbv.svg GPL-2.0-only https://github.com/gerbv/gerbv/blob/52b9e719981da5a450d073a7a5064d1903926fed/desktop/gerbv.svg
icon_download.png CC0-1.0 https://github.com/pages-themes/slate/blob/ff147bf37e3611395f37cc0cdcaee57550293235/assets/images/icon_download.png
slate-style.css CC0-1.0 https://github.com/pages-themes/slate/tree/a185c0dde883863779be4856421ba0b2390f44a4
sprite_download.png CC0-1.0 https://github.com/pages-themes/slate/blob/ff147bf37e3611395f37cc0cdcaee57550293235/assets/images/sprite_download.png
Windows_10_Logo.png [windows-logo] https://de.wikipedia.org/wiki/Datei:Windows_10_Logo.svg

[fedora-logo]: https://fedoraproject.org/wiki/Legal:Trademark_guidelines
[ubuntu-logo]: https://design.ubuntu.com/brand/ubuntu-logo/
[windows-logo]: https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks

Binary file added gerbv.github.io/assets/Windows_10_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gerbv.github.io/assets/bg_hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gerbv.github.io/assets/blacktocat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gerbv.github.io/assets/cof_orange_hex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c16d147

Please sign in to comment.