Console: avoid browser console errors when sidebar sections localstor… #5535
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
name: Java CI | |
on: | |
push: | |
branches-ignore: | |
- artifacts | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: GetText | |
run: | | |
echo "Installing gettext..." | |
sudo apt install -y gettext | |
echo "gettext installation completed." | |
- uses: actions/checkout@main | |
- name: Set up JDK 8 | |
uses: actions/setup-java@main | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Build i2pupdate.zip with Ant | |
run: | | |
echo "Building i2pupdate.zip..." | |
ant distclean updaterCompact | |
echo "Build complete. Here are the files:" | |
ls -al | |
- name: Build installer with Ant | |
run: | | |
echo "Building installer..." | |
ant pkg | |
echo "Installer build complete. Current directory contents:" | |
ls -al | |
- name: Build javadocs with Ant | |
run: | | |
echo "Building javadocs..." | |
ant javadoc-zip | |
echo "Javadocs build complete. Current directory contents:" | |
ls -al | |
- name: Build I2PSnark standalone with Ant | |
run: | | |
echo "Building I2PSnark standalone..." | |
ant i2psnark | |
echo "I2PSnark build complete. Current directory contents:" | |
ls -al | |
# Move artifacts to builds folder | |
- name: Move artifacts to builds folder | |
if: github.ref == 'refs/heads/artifacts' | |
run: | | |
echo "Moving artifacts to builds folder..." | |
mkdir -p builds # Create the builds directory if it doesn't exist | |
mv i2pupdate.zip builds/ && echo "Moved i2pupdate.zip to builds/" | |
mv install.jar builds/ && echo "Moved install.jar to builds/" | |
mv javadoc.zip builds/ && echo "Moved javadoc.zip to builds/" | |
mv i2psnark-standalone.zip builds/ && echo "Moved i2psnark-standalone.zip to builds/" | |
echo "Contents of the builds folder:" | |
ls -al builds/ | |
# Checkout artifacts branch | |
- name: Checkout artifacts branch | |
if: github.ref == 'refs/heads/artifacts' | |
run: | | |
echo "Checking out the artifacts branch..." | |
git fetch origin artifacts | |
git switch artifacts | |
# Commit and push changes to the artifacts branch | |
- name: Commit changes | |
if: github.ref == 'refs/heads/artifacts' | |
run: | | |
echo "Configuring git..." | |
git config user.name "GitHub Actions" | |
git config user.email "actions@github.com" | |
git add builds/ | |
git commit -m "Add artifacts to builds folder" || echo "No changes to commit" | |
- name: Push changes | |
if: github.ref == 'refs/heads/artifacts' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: artifacts # Push to the 'artifacts' branch |