-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
ba50177
commit 474fcd6
Showing
7 changed files
with
29 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,15 +17,14 @@ jobs: | |
with: | ||
path: public | ||
ref: gh-pages | ||
- name: Set up repo | ||
- name: Run 0repo | ||
run: | | ||
cp feeds/0repo-config.py . | ||
cp public/archives.db . | ||
mkdir incoming | ||
git config --global user.name "apps.0install.net" | ||
git config --global user.email "[email protected]" | ||
ln -s feeds/0repo-config.py . | ||
ln -s public/archives.db . | ||
echo "${{secrets.GPG_KEY}}" | gpg --import - | ||
- name: Run 0repo | ||
run: ./feeds/0install.sh run http://0install.net/tools/0repo.xml | ||
./feeds/0install.sh run http://0install.net/tools/0repo.xml | ||
- name: Push public | ||
run: cd public && git push | ||
run: | | ||
cd public | ||
git push |
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
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 |
---|---|---|
|
@@ -33,17 +33,15 @@ | |
# also the current directory. | ||
# 'message' can be used if you want to log the reason for the update. | ||
def upload_public_dir(files, message): | ||
if os.getenv('NO_SIGN'): | ||
print("Feeds not signed; not committing public") | ||
subprocess.check_call(['git', 'config', 'user.name', 'apps.0install.net']) | ||
subprocess.check_call(['git', 'config', 'user.email', '[email protected]']) | ||
subprocess.check_call(['git', 'add', '--', 'archives.db'] + files) | ||
changed = subprocess.call(['git', 'diff', '--exit-code', '--stat', 'HEAD', '--'] + files) | ||
if changed: | ||
subprocess.check_call(['git', 'commit', '-m', message]) | ||
print("Changes to public committed. Remember to push!") | ||
else: | ||
shutil.copyfile('../archives.db', 'archives.db') | ||
subprocess.check_call(['git', 'add', '--', 'archives.db'] + files) | ||
changed = subprocess.call(['git', 'diff', '--exit-code', '--stat', 'HEAD', '--'] + files) | ||
if changed: | ||
subprocess.check_call(['git', 'commit', '-m', message, '--', 'archives.db'] + files) | ||
print("Changes to public committed. Remember to push!") | ||
else: | ||
print("No changes to public.") | ||
print("No changes to public.") | ||
|
||
#### Archive hosting #### | ||
|
||
|
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
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