Skip to content

Commit

Permalink
Fix conf
Browse files Browse the repository at this point in the history
fix conf

add logs

add log

fix path

fix build

fix path

fix path

add tags

add -j option

...

...

...

...

...
  • Loading branch information
redDwarf03 committed Aug 3, 2024
1 parent f450ba2 commit 5af6188
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/build-chrome-ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build-chrome-extension:
if: contains(github.event.release.tag_name, 'chrome') || (!contains(github.event.release.tag_name, 'linux') && !contains(github.event.release.tag_name, 'windows') && !contains(github.event.release.tag_name, 'chrome'))
runs-on: ubuntu-latest

steps:
Expand All @@ -31,28 +32,41 @@ jobs:
- name: Build Chrome Extension
run: bash ./scripts/build_chrome_extension.sh

- name: List build directory contents
run: ls -R build

- name: Get Version from pubspec.yaml
id: get_version
run: |
version_str=$(grep -oP '(?<=^version: ).*' pubspec.yaml | awk '{$1=$1};1')
echo "version_app=${version_str}" >> $GITHUB_OUTPUT
echo "env_version_app=${version_str}" >> $GITHUB_ENV
- name: Zip build folder
- name: List build directory contents for debugging
run: ls -R build

- name: Check build directory exists
run: |
if [ -d build/chrome-extension ]; then
cd build/chrome-extension
zip -r ../../chrome-extension-${{ steps.get_version.outputs.version_app }}.zip ./
else
echo "Directory build/chrome-extension does not exist"
echo "Current working directory: $(pwd)"
echo "Contents of current directory:"
ls -la
if [ ! -d "build/chrome-extension" ]; then
echo "Error: build/chrome-extension directory does not exist."
find . -type d -name "chrome-extension"
exit 1
else
echo "build/chrome-extension directory exists."
ls build/chrome-extension
fi
- name: Install 7z
run: sudo apt-get install -y p7zip-full

- name: Zip build folder
run: |
echo "Creating zip file..."
(cd chrome-extension; 7z a -tzip ../../chrome-extension-build-${{ steps.get_version.outputs.version_app }}.zip ./)
working-directory: build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: chrome-extension-build-${{ steps.get_version.outputs.version_app }}
path: chrome-extension-${{ steps.get_version.outputs.version_app }}.zip
path: chrome-extension-build-${{ steps.get_version.outputs.version_app }}.zip
1 change: 1 addition & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build-linux:
if: contains(github.event.release.tag_name, 'linux') || (!contains(github.event.release.tag_name, 'linux') && !contains(github.event.release.tag_name, 'windows') && !contains(github.event.release.tag_name, 'chrome'))
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build-windows:
if: contains(github.event.release.tag_name, 'windows') || (!contains(github.event.release.tag_name, 'linux') && !contains(github.event.release.tag_name, 'windows') && !contains(github.event.release.tag_name, 'chrome'))
runs-on: windows-latest

steps:
Expand Down

0 comments on commit 5af6188

Please sign in to comment.