Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

how to not include .github/workflow into the release #122

Open
floriankuhlmann opened this issue Feb 4, 2021 · 2 comments
Open

how to not include .github/workflow into the release #122

floriankuhlmann opened this issue Feb 4, 2021 · 2 comments

Comments

@floriankuhlmann
Copy link

hi everybody,

not sure if i misunderstand something.
but do you have any idea how to prevent the action from including the
.github/workflows/
directory into the release-files?

i am using the workflow below. the files are removed in the second step but are later included in the release. any ideas how to setup my repository or actions?

thank you in advance,
best florian

on:
  push:
    branches: [ master ]
#    tags:
#      - 'v*' ## Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Release

jobs:
  build:
    name: Create Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Remove projectfiles and dirs
        run: |
          ls -lsa
          rm -R .github .gitignore .DS_Store
          ls -lsa
        shell: bash

      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
        with:
          tag_name: ${{ github.ref }}
          release_name: Release ${{ github.ref }}
          body: |
            First Beta Release for the plugin
            - still in development, please do not use without contacting us
          draft: false
          prerelease: false
@nICEnnnnnnnLee
Copy link

The step Create Release has nothing to do with the two steps above since the code has no change in your repository. You could just delete them.
You could generate a new branch without .github files and release this branch.

@Margen67
Copy link

The shell: bash is redundant as that is Ubuntu's default shell.
draft: false and prerelease: false are also redundant since they're set to their defaults.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants