refactor: update README to reflect S3 backup feature status and impro… #10
This file contains hidden or 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: Build and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| # Add these permissions to allow creating releases | |
| permissions: | |
| contents: write # Required for creating releases and uploading assets | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '16' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build plugin | |
| run: npm run build | |
| - name: Get version from package.json | |
| id: package-version | |
| uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
| - name: Create ZIP archive | |
| run: | | |
| cd dist | |
| zip -r ../logseq-super-sync-${{ steps.package-version.outputs.current-version }}.zip * | |
| cd .. | |
| - name: Create Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: v${{ steps.package-version.outputs.current-version }} | |
| name: logseq-super-sync v${{ steps.package-version.outputs.current-version }} | |
| files: logseq-super-sync-${{ steps.package-version.outputs.current-version }}.zip | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |